This commit is contained in:
parent
8fc17bd9c9
commit
6c9e3f15ae
4
nun.go
4
nun.go
@ -50,10 +50,8 @@ func (n *nunWatch) Main() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if n.fail != 0 {
|
|
||||||
n.fail = 0
|
n.fail = 0
|
||||||
ticker.Reset(60 * time.Second)
|
ticker.Reset(time.Duration(n.timer) * time.Second)
|
||||||
}
|
|
||||||
if curT != n.timer {
|
if curT != n.timer {
|
||||||
log.Println("updating nunwatch timer")
|
log.Println("updating nunwatch timer")
|
||||||
ticker.Reset(time.Duration(n.timer) * time.Minute)
|
ticker.Reset(time.Duration(n.timer) * time.Minute)
|
||||||
|
Loading…
Reference in New Issue
Block a user