Author: toad
Date: 2006-09-28 17:59:23 +0000 (Thu, 28 Sep 2006)
New Revision: 10552
Modified:
trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
Log:
Trivial.
Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2006-09-28
17:47:32 UTC (rev 10551)
+++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2006-09-28
17:59:23 UTC (rev 10552)
@@ -156,19 +156,21 @@
long delayTime = now - startThrottle;
+ // Report the delay caused by bandwidth
limiting, NOT the delay caused by congestion control.
((PeerNode)_destination).reportThrottledPacketSendTime(delayTime);
if(now > end) return;
while(now < end) {
- now = System.currentTimeMillis();
long l = end - now;
int x = (int) (Math.min(l,
Integer.MAX_VALUE));
- if(x > 0)
+ if(x > 0) {
try {
Thread.sleep(x);
} catch (InterruptedException
e) {
// Ignore
}
+ now =
System.currentTimeMillis();
+ }
}
}
};