Skip to content

Commit

Permalink
Fix the bug of getting the wrong current flow QPS in ClusterFlowCheck…
Browse files Browse the repository at this point in the history
…er (#972)
  • Loading branch information
ycx627954927 authored and sczyh30 committed Aug 12, 2019
1 parent 56c7369 commit 17365f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static TokenResult acquireClusterToken(/*@Valid*/ FlowRule rule, int acquireCoun
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;

Expand Down

0 comments on commit 17365f3

Please sign in to comment.