From ac086f16ffca7bb4058a6252451b667c62671857 Mon Sep 17 00:00:00 2001 From: Patrick Hulce Date: Fri, 8 Nov 2019 09:18:14 -0600 Subject: [PATCH] fix(server): only use seconds if 1000ms or more closes #44 --- .../server/src/ui/routes/build-view/audit-list/numeric-diff.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/ui/routes/build-view/audit-list/numeric-diff.jsx b/packages/server/src/ui/routes/build-view/audit-list/numeric-diff.jsx index 121ebc33f..50bd117d7 100644 --- a/packages/server/src/ui/routes/build-view/audit-list/numeric-diff.jsx +++ b/packages/server/src/ui/routes/build-view/audit-list/numeric-diff.jsx @@ -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';