Commit 95b3ab71 authored by duanjinfei's avatar duanjinfei

update monitor nm heart time

parent 9becfe32
...@@ -201,7 +201,7 @@ func monitorWorker(op *operate.DockerOp) { ...@@ -201,7 +201,7 @@ func monitorWorker(op *operate.DockerOp) {
for { for {
sub := time.Now().Sub(nodeManager.GetLastHeartTime()).Seconds() sub := time.Now().Sub(nodeManager.GetLastHeartTime()).Seconds()
log.WithField("time(uint seconds)", sub).Info("The time difference since the last heartbeat") log.WithField("time(uint seconds)", sub).Info("The time difference since the last heartbeat")
if sub > time.Duration(conf.GetConfig().HeartRespTimeSecond).Seconds() { if int64(sub) > conf.GetConfig().HeartRespTimeSecond {
if nodeManager.Status { if nodeManager.Status {
nodeManager.UpdateStatus(false) nodeManager.UpdateStatus(false)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment