GetConfigParam() renamed Param().

This commit is contained in:
Alan Noble 2018-06-25 10:10:37 +09:30
parent 41282aa2b4
commit 72d7dc3991
1 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ func main() {
}
}
}
sleepTime, _ := strconv.Atoi(ns.GetConfigParam("mp"))
sleepTime, _ := strconv.Atoi(ns.Param("mp"))
time.Sleep(time.Duration(sleepTime) * time.Second)
}
@ -310,7 +310,7 @@ func main() {
// (as distinct from httpSender which just sends video data).
func sendTo(ns *netsender.Sender) error {
// populate input values, if any
inputs := netsender.MakePins(ns.GetConfigParam("ip"), "X")
inputs := netsender.MakePins(ns.Param("ip"), "X")
for i, pin := range inputs {
if pin.Name == "X23" {
inputs[i].Value = revidInst.Bitrate()