Changed condition from total_sec < 0 to total_sec <= 0 to catch the edge case where an event is happening right now.