Changeset 4360284


Ignore:
Timestamp:
Sep 2, 2012 12:45:58 AM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c48aca8
Parents:
f44eeaf
Message:

stat and log tweaks

Location:
router/java/src/net/i2p/router/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/util/CoDelBlockingQueue.java

    rf44eeaf r4360284  
    66
    77import net.i2p.I2PAppContext;
     8import net.i2p.data.DataHelper;
    89import net.i2p.util.Log;
    910
     
    6263    private final String STAT_DROP;
    6364    private final String STAT_DELAY;
    64     private static final long[] RATES = {5*60*1000};
     65    private static final long[] RATES = {5*60*1000, 60*60*1000};
    6566
    6667    /**
     
    264265        if (_log.shouldLog(Log.WARN))
    265266            _log.warn(_name + " dropped item with delay " + delay + ", " +
     267                      DataHelper.formatDuration(_context.clock().now() - _first_above_time) + " since first above, " +
     268                      (_count+1) + " dropped in this phase, " +
    266269                      size() + " remaining in queue: " + entry);
    267270        entry.drop();
  • router/java/src/net/i2p/router/util/CoDelPriorityBlockingQueue.java

    rf44eeaf r4360284  
    88
    99import net.i2p.I2PAppContext;
     10import net.i2p.data.DataHelper;
    1011import net.i2p.util.Log;
    1112
     
    6768    private final String STAT_DROP;
    6869    private final String STAT_DELAY;
    69     private static final long[] RATES = {5*60*1000};
     70    private static final long[] RATES = {5*60*1000, 60*60*1000};
    7071    public static final int MIN_PRIORITY = 100;
    7172    private static final int[] PRIORITIES = {MIN_PRIORITY, 200, 300, 400, 500};
     
    286287                      entry.getPriority() + ", seq " +
    287288                      entry.getSeqNum() + ", " +
     289                      DataHelper.formatDuration(_context.clock().now() - _first_above_time) + " since first above, " +
     290                      (_count+1) + " dropped in this phase, " +
    288291                      size() + " remaining in queue: " + entry);
    289292        entry.drop();
Note: See TracChangeset for help on using the changeset viewer.