Fix the logic of getting maxSuccessQps in StatisticNode (#1196)

This commit is contained in:
fangwentong 2019-12-20 13:57:53 +08:00 committed by Eric Zhao
parent 50f3080add
commit 0e110c68ea
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ public class StatisticNode implements Node {
@Override
public double maxSuccessQps() {
return rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount();
return (double) rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount()
/ rollingCounterInSecond.getWindowIntervalInSec();
}
@Override