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 {
|
||||
//default to a config?????
|
||||
processManager.Logger.Log("Error", err.Error())
|
||||
config.Logger.Log("Error", err.Error())
|
||||
} else {
|
||||
configReceived = true;
|
||||
}
|
||||
|
@ -209,20 +209,20 @@ func netsenderInit() {
|
|||
func periodicNetsenderReport(){
|
||||
if !configReceived {
|
||||
if err := netsender.GetConfig(); err != nil {
|
||||
processManager.Logger.Log("Error", err.Error())
|
||||
config.Logger.Log("Error", err.Error())
|
||||
} else {
|
||||
configReceived = true;
|
||||
}
|
||||
}
|
||||
|
||||
var reply string
|
||||
if reply, reconfig, err = netsender.Send(netsender.RequestPoll, criticalInputs); err != nil {
|
||||
processManager.Logger.Log("Error", err.Error())
|
||||
|
||||
if _, reconfig, err := netsender.Send(netsender.RequestPoll, criticalInputs); err != nil {
|
||||
config.Logger.Log("Error", err.Error())
|
||||
}
|
||||
|
||||
if cloudVarSum := netsender.GetVarSum(); cloudVarSum != varSum {
|
||||
if newVars, err := netsender.GetVars(); err != nil {
|
||||
processManager.Logger.Log("Error", err.Error())
|
||||
config.Logger.Log("Error", err.Error())
|
||||
} else {
|
||||
varSum = cloudVarSum
|
||||
for newVar, value := range newVars {
|
||||
|
@ -286,7 +286,7 @@ func updateRevid() {
|
|||
case "IntraRefreshPeriod":
|
||||
asInt,err := strconv.Atoi(value)
|
||||
if asInt > 0 && err == nil {
|
||||
confog.IntraRefreshPeriod = value
|
||||
config.IntraRefreshPeriod = value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue