update: 210108-01

This commit is contained in:
hongqiaowei
2021-01-08 17:08:55 +08:00
parent c1015039f8
commit 32dc34bcbc
2 changed files with 6 additions and 0 deletions

View File

@@ -113,6 +113,9 @@ public class FlowStat {
if (success) {
success = resourceStat.incrRequestToTimeSlot(curTimeSlotId, maxRPS);
}
if (log.isDebugEnabled()) {
log.debug(resourceId + " incr req for current time slot " + curTimeSlotId + " with max con " + maxCon + " and max rps " + maxRPS);
}
return success;
}

View File

@@ -181,6 +181,9 @@ public class ResourceStat {
public TimeWindowStat getTimeWindowStat(long startSlotId, long endSlotId) {
TimeWindowStat tws = new TimeWindowStat();
tws.setStartTime(startSlotId);
tws.setEndTime(endSlotId);
long min = Long.MAX_VALUE;
long max = Long.MIN_VALUE;
long totalReqs = 0;