forked from I2P_Developers/i2p.i2p
* i2psnark:
- Fix NPE and other partials bugs
- More extension message stubbing
- Log tweaks
This commit is contained in:
@@ -114,8 +114,9 @@ class PeerCheckerTask extends TimerTask
|
||||
|
||||
// Choke a percentage of them rather than all so it isn't so drastic...
|
||||
// unless this torrent is over the limit all by itself.
|
||||
// choke 5/8 of the time when seeding and 3/8 when leeching
|
||||
boolean overBWLimitChoke = upload > 0 &&
|
||||
((overBWLimit && random.nextBoolean()) ||
|
||||
((overBWLimit && (random.nextInt(8) > (coordinator.completed() ? 2 : 4))) ||
|
||||
(coordinator.overUpBWLimit(uploaded)));
|
||||
|
||||
// If we are at our max uploaders and we have lots of other
|
||||
|
||||
Reference in New Issue
Block a user