Author: toad
Date: 2008-03-21 20:05:16 +0000 (Fri, 21 Mar 2008)
New Revision: 18690

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Logging

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-21 
19:52:51 UTC (rev 18689)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-21 
20:05:16 UTC (rev 18690)
@@ -66,6 +66,7 @@

        public synchronized void setRoundTripTime(long rtt) {
                _roundTripTime = Math.max(rtt, 10);
+               if(logMINOR) Logger.minor(this, "Set round trip time to "+rtt+" 
on "+this);
        }

     public synchronized void notifyOfPacketLost() {
@@ -74,7 +75,7 @@
                _totalPackets++;
                _simulatedWindowSize *= PACKET_DROP_DECREASE_MULTIPLE;
                slowStart = false;
-               if(Logger.shouldLog(Logger.MINOR, this))
+               if(logMINOR)
                        Logger.minor(this, "notifyOfPacketLost(): "+this);
                _packetSeqWindowFullChecked = _packetSeq;
     }


Reply via email to