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