Skip to content
This repository was archived by the owner on May 24, 2020. It is now read-only.

Commit

Permalink
better time stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Jul 4, 2017
1 parent c9d6e7f commit 37bb848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/assets/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 37bb848

Please sign in to comment.