summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-01 12:50:25 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:00:03 +0200
commit0b003bef8f36881522e1db1b0b8725ee92b59cd5 (patch)
tree87fe3c09575f76ecca872ea5f497ee1385bf888a /public
parentfcf6e38f68c22c1f1bbdb5f0f900d46d202d85a1 (diff)
downloadserver-0b003bef8f36881522e1db1b0b8725ee92b59cd5.tar.gz
Always show time left.
Diffstat (limited to 'public')
-rw-r--r--public/join.js2
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"