From 6803b384b2c90a1a64365d931f99bcc9fd113c1a Mon Sep 17 00:00:00 2001 From: huangweichang Date: Wed, 7 Jul 2021 09:58:09 +0800 Subject: [PATCH] fix following judge --- monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/monitor.go b/monitor/monitor.go index a48a0f5..159981c 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -130,7 +130,7 @@ func (node *clientNode) nodeStatusReport() { node.nodeTimeGap.Set(float64(timeGap)) } - if !follow { + if follow { node.syncWorkWay.Set(float64(SyncTaskFollowing)) } else { node.syncWorkWay.Set(float64(SyncTaskCatchingUp))