fix compile errors

This commit is contained in:
richardsonjack 2018-04-19 18:29:51 +09:30
parent bdd8446560
commit 23e2409c75
1 changed files with 7 additions and 7 deletions

View File

@ -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
}
}
}