From c845018e93b526010a2345b647dc3c5cdb0432d9 Mon Sep 17 00:00:00 2001
From: Mango0x45 <thomasvoss@live.com>
Date: Fri, 5 Feb 2021 21:58:27 +0100
Subject: Add trailing 0's on full second times

---
 main.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;
 }
-- 
cgit v1.2.3