try other thing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
stryan 2022-09-02 19:57:34 -04:00
parent 8fc17bd9c9
commit 6c9e3f15ae

6
nun.go
View File

@ -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)