From 4fe61ee7739c9f75126536d8cb89bd1edca8172f Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 6 Oct 2025 19:30:26 -0700 Subject: [PATCH] days --- bin/uptime.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/uptime.ts b/bin/uptime.ts index 0f97652..547434c 100644 --- a/bin/uptime.ts +++ b/bin/uptime.ts @@ -9,6 +9,7 @@ export default function () { const sec = Math.floor(ms / 1000) const min = Math.floor(sec / 60) const hrs = Math.floor(min / 60) + const days = Math.floor(hrs / 24) - return `${hrs}h ${min % 60}m ${sec % 60}s` -} + return `${days}d ${hrs % 24}h ${min % 60}m ${sec % 60}s` +} \ No newline at end of file