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)