gql_cataclysm
noah metz 2023-07-30 11:25:03 -06:00
parent ec9a29573a
commit 31f6c12f14
1 changed files with 1 additions and 1 deletions

@ -140,7 +140,7 @@ func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) {
var soonest_signal *QueuedSignal var soonest_signal *QueuedSignal
var soonest_time time.Time var soonest_time time.Time
for _, signal := range(signals) { for _, signal := range(signals) {
if signal.Time.Compare(soonest_time) == 1 || soonest_signal == nil { if signal.Time.Compare(soonest_time) == -1 || soonest_signal == nil {
soonest_signal = &signal soonest_signal = &signal
soonest_time = signal.Time soonest_time = signal.Time
} }