From 302ef63485c7c90cedc344359e5d0f6fef03992b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 9 Feb 2026 21:32:11 -0800 Subject: [PATCH] round duration to the second --- apps/cron/20260201-000000/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cron/20260201-000000/index.tsx b/apps/cron/20260201-000000/index.tsx index 62d4b48..53af2d6 100644 --- a/apps/cron/20260201-000000/index.tsx +++ b/apps/cron/20260201-000000/index.tsx @@ -415,7 +415,7 @@ function statusLabel(job: CronJob): string { function formatDuration(ms?: number): string { if (!ms) return '-' if (ms < 1000) return `${ms}ms` - if (ms < 60000) return `${(ms / 1000).toFixed(1)}s` + if (ms < 60000) return `${Math.round(ms / 1000)}s` return `${Math.round(ms / 60000)}m` }