[freenet-cvs] r12588 - trunk/freenet/src/freenet/node
toad at freenetproject.org
toad at freenetproject.org
Wed Apr 11 23:13:26 UTC 2007
Author: toad
Date: 2007-04-11 23:13:26 +0000 (Wed, 11 Apr 2007)
New Revision: 12588
Modified:
trunk/freenet/src/freenet/node/PeerManager.java
Log:
Fix the alchemy on the throttles. It was dividing the interval by max(backed off nodes, 1), it was supposed to divide by connected-and-routable nodes (or backed off if no non-backed off), with a minimum of 1.
I'm not convinced this makes sense any more, expect the node to explode once it finishes resuming requests from the store.
Modified: trunk/freenet/src/freenet/node/PeerManager.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerManager.java 2007-04-11 23:09:10 UTC (rev 12587)
+++ trunk/freenet/src/freenet/node/PeerManager.java 2007-04-11 23:13:26 UTC (rev 12588)
@@ -769,7 +769,7 @@
for(int i=0;i<peers.length;i++) {
if(peers[i].isRoutable()) {
count++;
- if(peers[i].isRoutingBackedOff()) countNoBackoff++;
+ if(!peers[i].isRoutingBackedOff()) countNoBackoff++;
}
}
if(countNoBackoff == 0) return count;
More information about the cvs
mailing list