From 0b003bef8f36881522e1db1b0b8725ee92b59cd5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 1 May 2025 12:50:25 +0200 Subject: Always show time left. --- public/join.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/join.js') 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" -- cgit v1.2.3