From 6022f1333cec4f10da7484e2e7dc78a54e447ac8 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 3 Feb 2021 18:15:06 +0100 Subject: Used wrong var names, oops --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 93c3666..d6394a5 100644 --- a/main.js +++ b/main.js @@ -29,9 +29,9 @@ function compute() /* Convert seconds to human readable time */ function time_format(t) { - const h = ~~(time / 3600); - const m = ~~((time % 3600) / 60); - const s = ~~time % 60; + const h = ~~(t / 3600); + const m = ~~((t % 3600) / 60); + const s = ~~t % 60; let ret = ""; if (h > 0) -- cgit v1.2.3