Updated to use correct NetReceiver param names, i.e., monPeriod=>mp, inputs=>ip.

This commit is contained in:
Alan Noble 2018-06-07 22:02:08 +00:00
parent 1c61ccbc49
commit b3699a8439
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ func main() {
}
}
}
sleepTime, _ := strconv.Atoi(ns.GetConfigParam("monPeriod"))
sleepTime, _ := strconv.Atoi(ns.GetConfigParam("mp"))
time.Sleep(time.Duration(sleepTime) * time.Second)
}
@ -305,7 +305,7 @@ func netSend() error {
}
}
inputs := netsender.SplitCSV(ns.GetConfigParam("inputs"))
inputs := netsender.SplitCSV(ns.GetConfigParam("ip"))
if _, reconfig, err := ns.Send(netsender.RequestPoll, inputs); err != nil {
return err
} else {