Skip to content

Commit

Permalink
Fix the logic of getting maxSuccessQps in StatisticNode (alibaba#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwentong authored and sczyh30 committed Dec 20, 2019
1 parent 50f3080 commit 0e110c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public double successQps() {

@Override
public double maxSuccessQps() {
return rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount();
return (double) rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount()
/ rollingCounterInSecond.getWindowIntervalInSec();
}

@Override
Expand Down

0 comments on commit 0e110c6

Please sign in to comment.