try other thing
continuous-integration/drone/push Build is passing Details

This commit is contained in:
stryan 2022-09-02 19:57:34 -04:00
parent 8fc17bd9c9
commit 6c9e3f15ae
1 changed files with 2 additions and 4 deletions

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)