From bf8114a29d29a33858e9fa1c6b4f39d85204f61b Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Thu, 16 Jun 2022 18:08:30 -0400 Subject: [PATCH] behn: don't compare pending timers to now --- pkg/arvo/sys/vane/behn.hoon | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/arvo/sys/vane/behn.hoon b/pkg/arvo/sys/vane/behn.hoon index 3a895d9eb..37d965dc0 100644 --- a/pkg/arvo/sys/vane/behn.hoon +++ b/pkg/arvo/sys/vane/behn.hoon @@ -168,9 +168,6 @@ :: ?~ unix-duct.state event-core - :: make sure we don't try to wake up in the past - :: - =? date-unit ?=(^ date-unit) `(max now u.date-unit) :: %_ event-core next-wake.state date-unit @@ -192,10 +189,10 @@ ?~ next-wake event-core (emit-doze ~) - :: if :next-wake is in the past or not soon enough, reset it + :: if :next-wake not soon enough, reset it :: ?^ next-wake - ?: &((gte date.u.first u.next-wake) (lte now u.next-wake)) + ?: (gte date.u.first u.next-wake) event-core (emit-doze `date.u.first) :: there was no unix wakeup timer; set one