totalcount 필터링 제거
This commit is contained in:
@@ -153,11 +153,9 @@ public class ApiStatsCollector {
|
||||
|
||||
minuteAggregators.forEach((key, aggregator) -> {
|
||||
if (key.getStatTime().isBefore(cutoffTime)) {
|
||||
// 스냅샷 생성 (건수가 0보다 큰 경우만)
|
||||
if (aggregator.getTotalCount() > 0) {
|
||||
ApiStatsMinute snapshot = aggregator.snapshot();
|
||||
result.add(snapshot);
|
||||
}
|
||||
// 스냅샷 생성
|
||||
ApiStatsMinute snapshot = aggregator.snapshot();
|
||||
result.add(snapshot);
|
||||
keysToRemove.add(key);
|
||||
}
|
||||
});
|
||||
@@ -187,11 +185,9 @@ public class ApiStatsCollector {
|
||||
|
||||
hourAggregators.forEach((key, aggregator) -> {
|
||||
if (key.getStatTime().isBefore(cutoffTime)) {
|
||||
// 스냅샷 생성 (건수가 0보다 큰 경우만)
|
||||
if (aggregator.getTotalCount() > 0) {
|
||||
ApiStatsHour snapshot = aggregator.snapshot();
|
||||
result.add(snapshot);
|
||||
}
|
||||
// 스냅샷 생성
|
||||
ApiStatsHour snapshot = aggregator.snapshot();
|
||||
result.add(snapshot);
|
||||
keysToRemove.add(key);
|
||||
}
|
||||
});
|
||||
@@ -236,9 +232,7 @@ public class ApiStatsCollector {
|
||||
List<ApiStatsMinute> result = new ArrayList<>();
|
||||
|
||||
minuteAggregators.forEach((key, aggregator) -> {
|
||||
if (aggregator.getTotalCount() > 0) {
|
||||
result.add(aggregator.snapshot());
|
||||
}
|
||||
result.add(aggregator.snapshot());
|
||||
});
|
||||
|
||||
minuteAggregators.clear();
|
||||
@@ -255,9 +249,7 @@ public class ApiStatsCollector {
|
||||
List<ApiStatsHour> result = new ArrayList<>();
|
||||
|
||||
hourAggregators.forEach((key, aggregator) -> {
|
||||
if (aggregator.getTotalCount() > 0) {
|
||||
result.add(aggregator.snapshot());
|
||||
}
|
||||
result.add(aggregator.snapshot());
|
||||
});
|
||||
|
||||
hourAggregators.clear();
|
||||
|
||||
Reference in New Issue
Block a user