From 1590922bc5ca42a71b4e024f75e5bf3179948aa4 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Thu, 15 Oct 2026 12:20:44 -0500 Subject: [PATCH] If server remaining time is negative then the match is proably over, report 0 seconds remaining instead of ~4 days :D --- lib/worker/api/game_server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/worker/api/game_server.rb b/lib/worker/api/game_server.rb index 675846a..3237322 100644 --- a/lib/worker/api/game_server.rb +++ b/lib/worker/api/game_server.rb @@ -67,6 +67,7 @@ module W3DHubLauncher return "∞" unless @estimated_end_time remaining_seconds = @estimated_end_time.utc.to_i - Time.now.utc.to_i + remaining_seconds = 0 if remaining_seconds.negative? hours = (remaining_seconds / 60.0 / 60.0).floor % 100 minutes = (remaining_seconds / 60.0).floor % 60