pretty 0 seconds, not 0 second

This commit is contained in:
soulgalore 2014-06-26 08:25:29 -07:00
parent 5e8161f248
commit 445d7a5cfd
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ module.exports = {
else if (seconds / secondsPerMinute >= 1)
return sign + Math.round(seconds / secondsPerMinute) + " minute" + ((
Math.round(seconds / secondsPerMinute) > 1) ? "s" : "");
else return sign + seconds + " second" + ((seconds > 1) ? "s" : "");
else return sign + seconds + " second" + ((seconds > 1 || seconds === 0) ? "s" : "");
},
/**