* i2psnark: Listing fixes and cleanups; icons on front page; tweak bw choker again

This commit is contained in:
zzz
2010-05-26 14:28:46 +00:00
parent b61e2aa73c
commit 9132e94143
7 changed files with 127 additions and 68 deletions

View File

@@ -115,10 +115,10 @@ class PeerCheckerTask extends TimerTask
+ " C: " + peer.isChoked(),
Snark.DEBUG);
// Choke a third of them rather than all so it isn't so drastic...
// Choke a percentage of them rather than all so it isn't so drastic...
// unless this torrent is over the limit all by itself.
boolean overBWLimitChoke = upload > 0 &&
((overBWLimit && random.nextInt(3) == 0) ||
((overBWLimit && random.nextInt(5) < 2) ||
(coordinator.overUpBWLimit(uploaded)));
// If we are at our max uploaders and we have lots of other