aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com> 2021-02-06 16:28:31 +0100
committerGitHub <noreply@github.com> 2021-02-06 16:28:31 +0100
commitdab73f3faefe6546e9ce22fa77cfcd2a9d74dbcd (patch)
treecb7779ba799d53424c48f8bbf64175619f33f48f /main.js
parent85adda024d3207af26f12f5f8e2cdc2df1c349ec (diff)
Fix millisecond checking bug
Diffstat (limited to 'main.js')
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
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";