Author: toad
Date: 2008-02-28 18:11:15 +0000 (Thu, 28 Feb 2008)
New Revision: 18213

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Better toString() (for simulations anyway)

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
18:08:31 UTC (rev 18212)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
18:11:15 UTC (rev 18213)
@@ -137,7 +137,7 @@
        public synchronized String toString() {
                return Double.toString((((PACKET_SIZE * 1000.0 / getDelay())) / 
1024)) + " k/sec, (w: "
                                + _simulatedWindowSize + ", r:" + 
_roundTripTime + ", d:"
-                               + (((float) _droppedPackets / (float) 
_totalPackets)) + ") for "+_peer;
+                               + (((float) _droppedPackets / (float) 
_totalPackets)) + ") for "+_peer+" : "+super.toString();
        }

        public synchronized long getRoundTripTime() {


Reply via email to