forked from I2P_Developers/i2p.i2p
2006-03-15 jrandom
* Further stat cleanup * Keep track of how many peers we are actively trying to communicate with, beyond those who are just trying to communicate with us. * Further router tunnel participation throttle revisions to avoid spurious rejections * Rate stat display cleanup (thanks ripple!) * Don't even try to send messages that have been queued too long
This commit is contained in:
@ -189,7 +189,7 @@ public class Rate {
|
||||
// how much were we off by? (so that we can sample down the measured values)
|
||||
double periodFactor = measuredPeriod / (double)_period;
|
||||
_lastTotalValue = _currentTotalValue / periodFactor;
|
||||
_lastEventCount = (long) (_currentEventCount / periodFactor);
|
||||
_lastEventCount = (long) ( (_currentEventCount + periodFactor - 1) / periodFactor);
|
||||
_lastTotalEventTime = (long) (_currentTotalEventTime / periodFactor);
|
||||
_lastCoalesceDate = now;
|
||||
|
||||
|
Reference in New Issue
Block a user