aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-02-03 18:15:06 +0100
committerMango0x45 <thomasvoss@live.com> 2021-02-03 18:15:06 +0100
commit6022f1333cec4f10da7484e2e7dc78a54e447ac8 (patch)
tree623015528e8851e513284c116a449665d5a2647e
parentadd7c63d4c5a859b1fddab8077b6c94afa8b38fb (diff)
Used wrong var names, oops
-rw-r--r--main.js6
1 files 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)