This commit is contained in:
Chris Wanstrath 2025-10-06 19:30:26 -07:00
parent 2b66107866
commit 4fe61ee773

View File

@ -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`
}