mirror of https://bitbucket.org/ausocean/av.git
Updated to use correct NetReceiver param names, i.e., monPeriod=>mp, inputs=>ip.
This commit is contained in:
parent
1c61ccbc49
commit
b3699a8439
|
@ -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)
|
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 {
|
if _, reconfig, err := ns.Send(netsender.RequestPoll, inputs); err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue