aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
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 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);