If server remaining time is negative then the match is proably over, report 0 seconds remaining instead of ~4 days :D

This commit is contained in:
2026-10-15 12:20:44 -05:00
parent e344a492e0
commit 1590922bc5

View File

@@ -67,6 +67,7 @@ module W3DHubLauncher
return "∞" unless @estimated_end_time return "∞" unless @estimated_end_time
remaining_seconds = @estimated_end_time.utc.to_i - Time.now.utc.to_i 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 hours = (remaining_seconds / 60.0 / 60.0).floor % 100
minutes = (remaining_seconds / 60.0).floor % 60 minutes = (remaining_seconds / 60.0).floor % 60