From f98edc17443389fe4ba29aa18e5ae5a6c59b4556 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sat, 18 Nov 2023 15:22:43 -0600 Subject: [PATCH] Fixed game clock colon 'blinking' in the middle of the second --- lib/game_clock/clock.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game_clock/clock.rb b/lib/game_clock/clock.rb index b6309ea..44982c7 100644 --- a/lib/game_clock/clock.rb +++ b/lib/game_clock/clock.rb @@ -61,8 +61,8 @@ module TAC seconds = format("%02d", time_left.ceil % 60) - return "#{minutes}:#{seconds}" if time_left.round.even? - return "#{minutes}:#{seconds}" if time_left.round.odd? + return "#{minutes}:#{seconds}" if time_left.ceil.even? + return "#{minutes}:#{seconds}" if time_left.ceil.odd? end end end