Skip to content

Commit de16134

Browse files
committed
fix: reset stats should also reset rollingCounterInMinute
Change-Id: I86e004d9af1a70011dc9efd630735e4ee9b495e6
1 parent 6a149f7 commit de16134

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentinel-core/src/main/java/com/alibaba/csp/sentinel/node/StatisticNode.java

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ private boolean isValidMetricNode(MetricNode node) {
149149
@Override
150150
public void reset() {
151151
rollingCounterInSecond = new ArrayMetric(SampleCountProperty.SAMPLE_COUNT, IntervalProperty.INTERVAL);
152+
rollingCounterInMinute = new ArrayMetric(60, 60 * 1000, false);
152153
}
153154

154155
@Override

0 commit comments

Comments
 (0)