* i2psnark:

- Fix NPE and other partials bugs
      - More extension message stubbing
      - Log tweaks
This commit is contained in:
zzz
2010-11-28 04:01:20 +00:00
parent 9ba86e86aa
commit a52fb65c64
5 changed files with 62 additions and 10 deletions

View File

@@ -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