aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.js b/main.js
index c587806..992e05e 100644
--- a/main.js
+++ b/main.js
@@ -12,8 +12,8 @@ function compute()
const s = Math.round(frames / fps * 1000) / 1000;
/* Show the time and mod message in the DOM */
- const sf = st * fps;
- const ef = et * fps;
+ const sf = Math.trunc(st * fps);
+ const ef = Math.trunc(et * fps);
const t = time_format(s);
const mod_message = `Mod Note: Retimed (Start Frame: ${
sf}, End Frame: ${ef}, FPS: ${fps}, Total Time: ${t})`;