Fix the logic of getting maxSuccessQps in StatisticNode (#1196)
This commit is contained in:
parent
50f3080add
commit
0e110c68ea
|
|
@ -213,7 +213,8 @@ public class StatisticNode implements Node {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double maxSuccessQps() {
|
public double maxSuccessQps() {
|
||||||
return rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount();
|
return (double) rollingCounterInSecond.maxSuccess() * rollingCounterInSecond.getSampleCount()
|
||||||
|
/ rollingCounterInSecond.getWindowIntervalInSec();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue