mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Fix human readable time format (#732)
This commit is contained in:
1 parent
97e25eb885
commit
52d8822048
1 file changed
+1
-1
@@ -27,7 +27,7 @@ export function formatDuration(ms: number): string {
|
|||||||
result += formatMinute(Math.floor(ms / 60e3));
|
result += formatMinute(Math.floor(ms / 60e3));
|
||||||
ms %= 60e3;
|
ms %= 60e3;
|
||||||
}
|
}
|
||||||
result += formatSecond(Math.round(ms / 1e3));
|
result += formatSecond(Math.floor(ms / 1e3));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user