I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit cebef747 authored by zzz's avatar zzz
Browse files

Transport: Don't update queue size stat unless enabled

parent 76fd180b
No related branches found
No related tags found
No related merge requests found
...@@ -351,12 +351,14 @@ public class FIFOBandwidthRefiller implements Runnable { ...@@ -351,12 +351,14 @@ public class FIFOBandwidthRefiller implements Runnable {
} }
/** /**
* Run once every replenish period * Call a few times a minute to update the stats
* *
* @since 0.8.12 * @since 0.8.12
*/ */
private void updateParticipating(long now) { private void updateParticipating(long now) {
_context.statManager().addRateData("tunnel.participatingBandwidthOut", getCurrentParticipatingBandwidth()); _context.statManager().addRateData("tunnel.participatingBandwidthOut", getCurrentParticipatingBandwidth());
_context.statManager().addRateData("bwLimiter.participatingBandwidthQueue", (long) _partBWE.getQueueSizeEstimate()); // this one is not a required stat
if (_context.getBooleanProperty("stat.full"))
_context.statManager().addRateData("bwLimiter.participatingBandwidthQueue", (long) _partBWE.getQueueSizeEstimate());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment