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) {