aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-02-03 19:11:02 +0100
committerMango0x45 <thomasvoss@live.com> 2021-02-03 19:11:02 +0100
commit9faffdc06cf9e14f92f29b56e7da07c214151b64 (patch)
treeb172a0c398c96ec8d54cb6f03ee5c54cd10c9f0b
parent58d47a3fd5b763d3b607eefe1dac3c24cfc5eff1 (diff)
Fix more bugs
-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);