From 37bb848e1e0b5ed5f91f6650d749f2b83720b087 Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Tue, 4 Jul 2017 16:20:03 -0400 Subject: [PATCH] better time stamps --- dashboard/assets/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/assets/utils.js b/dashboard/assets/utils.js index b7747de..6c7ec9d 100644 --- a/dashboard/assets/utils.js +++ b/dashboard/assets/utils.js @@ -67,11 +67,11 @@ function getPrettyTime (millisecondCount) { var seconds = duration.asSeconds() var milliseconds = duration.asMilliseconds() - if (hours >= 1.5) { + if (hours >= 1) { return numberWithCommas(roundNumber(hours, 2)) + ' hours' - } else if (minutes >= 1.5) { + } else if (minutes >= 1) { return numberWithCommas(roundNumber(minutes, 2)) + ' minutes' - } else if (seconds >= 1.5) { + } else if (seconds >= 1) { return numberWithCommas(roundNumber(seconds, 2)) + 's' } else { return numberWithCommas(roundNumber(milliseconds, 2)) + 'ms'