diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-05-01 12:50:25 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-05-06 20:00:03 +0200 |
commit | 0b003bef8f36881522e1db1b0b8725ee92b59cd5 (patch) | |
tree | 87fe3c09575f76ecca872ea5f497ee1385bf888a /public | |
parent | fcf6e38f68c22c1f1bbdb5f0f900d46d202d85a1 (diff) | |
download | server-0b003bef8f36881522e1db1b0b8725ee92b59cd5.tar.gz |
Always show time left.
Diffstat (limited to 'public')
-rw-r--r-- | public/join.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/join.js b/public/join.js index 286e400..2d7a023 100644 --- a/public/join.js +++ b/public/join.js @@ -126,7 +126,7 @@ function format_options(options) { function format_time_left(time) { if (time <= 0) return "no time left" - if (time <= 2 / 24) + if (time <= 0.125) return Math.floor(time * 24 * 60) + " minutes left" if (time <= 3) return Math.floor(time * 24) + " hours left" |