From ac32febded05423b355b9f8a6458a0c1d7761343 Mon Sep 17 00:00:00 2001 From: Harley White Date: Thu, 29 Apr 2021 19:15:23 -0400 Subject: [PATCH] Tiny fix to time formatting --- js/utils/NumberFormating.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/utils/NumberFormating.js b/js/utils/NumberFormating.js index bf33a88..c26784b 100644 --- a/js/utils/NumberFormating.js +++ b/js/utils/NumberFormating.js @@ -67,7 +67,7 @@ function formatTime(s) { else if (s < 3600) return formatWhole(Math.floor(s / 60)) + "m " + format(s % 60) + "s" else if (s < 86400) return formatWhole(Math.floor(s / 3600)) + "h " + formatWhole(Math.floor(s / 60) % 60) + "m " + format(s % 60) + "s" else if (s < 31536000) return formatWhole(Math.floor(s / 86400) % 365) + "d " + formatWhole(Math.floor(s / 3600) % 24) + "h " + formatWhole(Math.floor(s / 60) % 60) + "m " + format(s % 60) + "s" - else return formatWhole(Math.floor(s / 31536000)) + "y " + formatWhole(Math.floor(s / 84600) % 365) + "d " + formatWhole(Math.floor(s / 3600) % 24) + "h " + formatWhole(Math.floor(s / 60) % 60) + "m " + format(s % 60) + "s" + else return formatWhole(Math.floor(s / 31536000)) + "y " + formatWhole(Math.floor(s / 86400) % 365) + "d " + formatWhole(Math.floor(s / 3600) % 24) + "h " + formatWhole(Math.floor(s / 60) % 60) + "m " + format(s % 60) + "s" } function toPlaces(x, precision, maxAccepted) {