aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-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)