fix: always convert seconds to fixed 3 when printing running time

This commit is contained in:
Pavel
2025-08-14 21:36:34 +02:00
parent 25fe1d03a7
commit b5ab1d6b33

View File

@@ -47,7 +47,7 @@
function formatRunningTime(seconds: number): string {
if (!seconds) return '-';
if (seconds < 60) return `${seconds.toFixed(3)}s`;
if (seconds < 3600) return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
if (seconds < 3600) return `${Math.floor(seconds / 60)}m ${(seconds % 60).toFixed(3)}s`;
return `${Math.floor(seconds / 3600)}h ${Math.floor((seconds % 3600) / 60)}m`;
}