summaryrefslogtreecommitdiff
path: root/benchmark/_benchmark_progress.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/_benchmark_progress.js')
-rw-r--r--benchmark/_benchmark_progress.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/_benchmark_progress.js b/benchmark/_benchmark_progress.js
index 2a2a458c5c..4b42248f24 100644
--- a/benchmark/_benchmark_progress.js
+++ b/benchmark/_benchmark_progress.js
@@ -15,9 +15,9 @@ function fraction(numerator, denominator) {
function getTime(diff) {
const time = Math.ceil(diff[0] + diff[1] / 1e9);
- const seconds = pad(time % 60, 2, '0');
- const minutes = pad(Math.floor(time / 60) % (60 * 60), 2, '0');
- const hours = pad(Math.floor(time / (60 * 60)), 2, '0');
+ const hours = pad(Math.floor(time / 3600), 2, '0');
+ const minutes = pad(Math.floor((time % 3600) / 60), 2, '0');
+ const seconds = pad((time % 3600) % 60, 2, '0');
return `${hours}:${minutes}:${seconds}`;
}