From 9faffdc06cf9e14f92f29b56e7da07c214151b64 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 3 Feb 2021 19:11:02 +0100 Subject: Fix more bugs --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 45ac9b7..c57a1d6 100644 --- a/main.js +++ b/main.js @@ -13,7 +13,7 @@ function compute() return; const frames = (eframe - sframe) * fps; - const s = Math.floor(frames / fps); + const s = Math.trunc(frames / fps * 1000) / 1000; /* Show the time and mod message in the DOM */ const ftime = time_format(s); -- cgit v1.2.3