Author: toad
Date: 2008-03-21 20:10:58 +0000 (Fri, 21 Mar 2008)
New Revision: 18695
Modified:
trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Synchronization
Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-03-21
20:10:26 UTC (rev 18694)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-03-21
20:10:58 UTC (rev 18695)
@@ -140,7 +140,7 @@
* returns the number of bytes-per-second in the transmition link (?).
* Will not return more than 40K/s due to MIN_DELAY in getDelay().
*/
- public double getBandwidth() {
+ public synchronized double getBandwidth() {
//PACKET_SIZE=1024 [bytes?]
//1000 ms/sec
return ((PACKET_SIZE * 1000.0 / getDelay()));