Skip to content

Commit

Permalink
fix(server): only use seconds if 1000ms or more
Browse files Browse the repository at this point in the history
closes #44
  • Loading branch information
patrickhulce committed Nov 8, 2019
1 parent c4a2c40 commit ac086f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const toDisplay = (x, options) => {
if (unit === 'ms') {
suffix = ' ms';

if (Math.abs(value) >= 500 && !options.preventSecondsConversion) {
if (Math.abs(value) >= 1000 && !options.preventSecondsConversion) {
value /= 1000;
fractionDigits = 1;
suffix = ' s';
Expand Down

0 comments on commit ac086f1

Please sign in to comment.