From 31f6c12f145520fea1a3811e1154dc493b712935 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 30 Jul 2023 11:25:03 -0600 Subject: [PATCH] test --- node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.go b/node.go index a82c376..3c6b967 100644 --- a/node.go +++ b/node.go @@ -140,7 +140,7 @@ func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) { var soonest_signal *QueuedSignal var soonest_time time.Time 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_time = signal.Time }