forked from I2P_Developers/i2p.i2p
* i2psnark:
- Randomize the PeerCheckerTask start times to make global limiting work better - Calculate bw limits using 40s rather than 4m averages to make bw limiting work better - Change default bw limit from uplimit/3 to uplimit/2 due to overhead reduction from the leaseset bundling change
This commit is contained in:
@ -119,7 +119,7 @@ public class SnarkManager implements Snark.CompleteListener {
|
||||
_config.setProperty(PROP_UPLOADERS_TOTAL, "" + Snark.MAX_TOTAL_UPLOADERS);
|
||||
if (!_config.containsKey(PROP_UPBW_MAX)) {
|
||||
if (_context instanceof RouterContext)
|
||||
_config.setProperty(PROP_UPBW_MAX, "" + (((RouterContext)_context).bandwidthLimiter().getOutboundKBytesPerSecond() / 3));
|
||||
_config.setProperty(PROP_UPBW_MAX, "" + (((RouterContext)_context).bandwidthLimiter().getOutboundKBytesPerSecond() / 2));
|
||||
else
|
||||
_config.setProperty(PROP_UPBW_MAX, "" + DEFAULT_MAX_UP_BW);
|
||||
}
|
||||
|
Reference in New Issue
Block a user