From fe5b801203d697d9d3b81574957eb16f9e4d074c Mon Sep 17 00:00:00 2001 From: Olaf Leidinger Date: Wed, 19 Feb 2014 00:36:14 +0100 Subject: [PATCH] remove display of fractional seconds --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 874cfb8..f26ded7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -71,7 +71,7 @@ function formatTime(sec_num) { let hours = Math.floor(sec_num / 3600); let minutes = Math.floor((sec_num - (hours * 3600)) / 60); - let seconds = sec_num - (hours * 3600) - (minutes * 60); + let seconds = Math.round(sec_num - (hours * 3600) - (minutes * 60)); if (hours < 10) {hours = "0"+hours;} if (minutes < 10) {minutes = "0"+minutes;}