From dd2a3adb56242b2d2294f8eb074804022a5edfac Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 3 Feb 2021 18:28:06 +0100 Subject: Fix milliseconds --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index d6394a5..ee1437d 100644 --- a/main.js +++ b/main.js @@ -40,6 +40,11 @@ function time_format(t) ret += m + ":" + (s < 10 ? "0" : ""); ret += s; + /* Milliseconds */ + const st = t.toString(); + if (!isNaN(t) && st.indexOf(".") != -1) + ret += "." + st.split(".")[1]; + return ret; } -- cgit v1.2.3