update: 210108-01
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user