aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.js b/main.js
index fd77355..f021e88 100644
--- a/main.js
+++ b/main.js
@@ -40,7 +40,9 @@ function time_format(t)
/* Milliseconds */
const st = t.toString();
if (!isNaN(t) && st.indexOf(".") != -1)
- ret += "." + st.split(".")[1];
+ ret += "." + st.split(".")[1].toFixed(3);
+ else
+ ret += ".000"
return ret;
}