From dab73f3faefe6546e9ce22fa77cfcd2a9d74dbcd Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Sat, 6 Feb 2021 16:28:31 +0100 Subject: Fix millisecond checking bug --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.js') diff --git a/main.js b/main.js index 4932ffd..57bf0e8 100644 --- a/main.js +++ b/main.js @@ -39,7 +39,7 @@ function time_format(t) ret += s; /* Milliseconds */ - if (t % 1 == 0) + if (t % 1 != 0) ret += "." + t.toFixed(3).split(".")[1]; else ret += ".000"; -- cgit v1.2.3