Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #84 from weichang-bianjie/fix_metric
Browse files Browse the repository at this point in the history
R4R: fix code for judge if task following in monitor
  • Loading branch information
weichang-x authored Jul 7, 2021
2 parents d9b180b + 6803b38 commit 8c69290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8c69290

Please sign in to comment.