Fix the bug of getting the wrong current flow QPS in ClusterFlowChecker (#972)

This commit is contained in:
changxing.yu 2019-08-12 13:47:15 +08:00 committed by Eric Zhao
parent 56c73698cb
commit 17365f3d5f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ final class ClusterFlowChecker {
return new TokenResult(TokenResultStatus.FAIL);
}
double latestQps = metric.getAvg(ClusterFlowEvent.PASS_REQUEST);
double latestQps = metric.getAvg(ClusterFlowEvent.PASS);
double globalThreshold = calcGlobalThreshold(rule) * ClusterServerConfigManager.getExceedCount();
double nextRemaining = globalThreshold - latestQps - acquireCount;