Configurable interval for nodata checks
This commit is contained in:
parent
c45724f5d8
commit
9eecf946f8
3 changed files with 8 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ func nodataLoop() {
|
|||
var err error
|
||||
|
||||
// TODO - should be configurable
|
||||
ticker := time.NewTicker(time.Second * 5)
|
||||
ticker := time.NewTicker(time.Second * time.Duration(smonConf.NodataInterval))
|
||||
for {
|
||||
<-ticker.C
|
||||
datapoints, err = nodataDatapoints()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue