From 6c9e3f15ae8e9339996c904ff88a64122bfc54cd Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 2 Sep 2022 19:57:34 -0400 Subject: [PATCH] try other thing --- nun.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nun.go b/nun.go index a41c3c1..b903772 100644 --- a/nun.go +++ b/nun.go @@ -50,10 +50,8 @@ func (n *nunWatch) Main() { break } } - if n.fail != 0 { - n.fail = 0 - ticker.Reset(60 * time.Second) - } + n.fail = 0 + ticker.Reset(time.Duration(n.timer) * time.Second) if curT != n.timer { log.Println("updating nunwatch timer") ticker.Reset(time.Duration(n.timer) * time.Minute)