Author: toad
Date: 2008-03-14 17:34:00 +0000 (Fri, 14 Mar 2008)
New Revision: 18531
Modified:
trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Doh! if(shouldThrottle) { ... throttle ... }
Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-03-14
17:06:01 UTC (rev 18530)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-03-14
17:34:00 UTC (rev 18531)
@@ -191,7 +191,7 @@
Logger.minor(this, "Congestion control wait time:
"+waitTime+" for "+this);
MyCallback callback = new MyCallback();
try {
- if(!((PeerNode)peer).shouldThrottle()) {
+ if(((PeerNode)peer).shouldThrottle()) {
if(logMINOR) Logger.minor(this, "Throttling
"+peer.shortToString()+" : "+packetSize+" for "+this);
long startTime = System.currentTimeMillis();
overallThrottle.blockingGrab(packetSize);