This commit is contained in:
parent
8fc17bd9c9
commit
6c9e3f15ae
6
nun.go
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user