mirror of https://bitbucket.org/ausocean/av.git
fix compile errors
This commit is contained in:
parent
bdd8446560
commit
23e2409c75
14
RevidCLI.go
14
RevidCLI.go
|
@ -200,7 +200,7 @@ func netsenderInit() {
|
||||||
|
|
||||||
if err := netsender.GetConfig(); err != nil {
|
if err := netsender.GetConfig(); err != nil {
|
||||||
//default to a config?????
|
//default to a config?????
|
||||||
processManager.Logger.Log("Error", err.Error())
|
config.Logger.Log("Error", err.Error())
|
||||||
} else {
|
} else {
|
||||||
configReceived = true;
|
configReceived = true;
|
||||||
}
|
}
|
||||||
|
@ -209,20 +209,20 @@ func netsenderInit() {
|
||||||
func periodicNetsenderReport(){
|
func periodicNetsenderReport(){
|
||||||
if !configReceived {
|
if !configReceived {
|
||||||
if err := netsender.GetConfig(); err != nil {
|
if err := netsender.GetConfig(); err != nil {
|
||||||
processManager.Logger.Log("Error", err.Error())
|
config.Logger.Log("Error", err.Error())
|
||||||
} else {
|
} else {
|
||||||
configReceived = true;
|
configReceived = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var reply string
|
|
||||||
if reply, reconfig, err = netsender.Send(netsender.RequestPoll, criticalInputs); err != nil {
|
if _, reconfig, err := netsender.Send(netsender.RequestPoll, criticalInputs); err != nil {
|
||||||
processManager.Logger.Log("Error", err.Error())
|
config.Logger.Log("Error", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
if cloudVarSum := netsender.GetVarSum(); cloudVarSum != varSum {
|
if cloudVarSum := netsender.GetVarSum(); cloudVarSum != varSum {
|
||||||
if newVars, err := netsender.GetVars(); err != nil {
|
if newVars, err := netsender.GetVars(); err != nil {
|
||||||
processManager.Logger.Log("Error", err.Error())
|
config.Logger.Log("Error", err.Error())
|
||||||
} else {
|
} else {
|
||||||
varSum = cloudVarSum
|
varSum = cloudVarSum
|
||||||
for newVar, value := range newVars {
|
for newVar, value := range newVars {
|
||||||
|
@ -286,7 +286,7 @@ func updateRevid() {
|
||||||
case "IntraRefreshPeriod":
|
case "IntraRefreshPeriod":
|
||||||
asInt,err := strconv.Atoi(value)
|
asInt,err := strconv.Atoi(value)
|
||||||
if asInt > 0 && err == nil {
|
if asInt > 0 && err == nil {
|
||||||
confog.IntraRefreshPeriod = value
|
config.IntraRefreshPeriod = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue