Author: robert
Date: 2008-01-07 19:31:24 +0000 (Mon, 07 Jan 2008)
New Revision: 16958

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
bytes, not kilobytes (from r16244)


Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-01-07 
18:45:16 UTC (rev 16957)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-01-07 
19:31:24 UTC (rev 16958)
@@ -125,7 +125,13 @@
                return _simulatedWindowSize;
        }

+       /**
+        * 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() {
-               return ((PACKET_SIZE * 1000.0 / getDelay())) / 1024;
+               //PACKET_SIZE=1024 [bytes?]
+               //1000 ms/sec
+               return ((PACKET_SIZE * 1000.0 / getDelay()));
        }
 }


Reply via email to