Changeset b5bba5e


Ignore:
Timestamp:
Mar 15, 2015 11:35:49 AM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
74ab1bf
Parents:
ec6207fc
Message:

log tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/FIFOBandwidthLimiter.java

    rec6207fc rb5bba5e  
    279279     */
    280280    final void refillBandwidthQueues(List<Request> buf, long bytesInbound, long bytesOutbound, long maxBurstIn, long maxBurstOut) {
    281         if (_log.shouldLog(Log.DEBUG))
    282             _log.debug("Refilling the queues with " + bytesInbound + "/" + bytesOutbound + ": " + getStatus().toString());
     281        //if (_log.shouldLog(Log.DEBUG))
     282        //    _log.debug("Refilling the queues with " + bytesInbound + "/" + bytesOutbound + ": " + getStatus().toString());
    283283
    284284        // Take some care throughout to minimize accesses to the atomics,
     
    290290        int avi = _availableInbound.addAndGet((int) bytesInbound);
    291291        if (avi > _maxInbound) {
    292             if (_log.shouldLog(Log.DEBUG))
    293                 _log.debug("available inbound (" + avi + ") exceeds our inbound burst (" + _maxInbound + "), so no supplement");
     292            //if (_log.shouldLog(Log.DEBUG))
     293            //    _log.debug("available inbound (" + avi + ") exceeds our inbound burst (" + _maxInbound + "), so no supplement");
    294294            int uib = _unavailableInboundBurst.addAndGet(avi - _maxInbound);
    295295            _availableInbound.set(_maxInbound);
     
    303303            if (want > (_maxInbound - avi))
    304304                want = _maxInbound - avi;
    305             if (_log.shouldLog(Log.DEBUG))
    306                 _log.debug("want to pull " + want + " from the inbound burst (" + _unavailableInboundBurst + ") to supplement " + avi + " (max: " + _maxInbound + ")");
     305            //if (_log.shouldLog(Log.DEBUG))
     306            //    _log.debug("want to pull " + want + " from the inbound burst (" + _unavailableInboundBurst + ") to supplement " + avi + " (max: " + _maxInbound + ")");
    307307           
    308308            if (want > 0) {
     
    320320        int avo = _availableOutbound.addAndGet((int) bytesOutbound);
    321321        if (avo > _maxOutbound) {
    322             if (_log.shouldLog(Log.DEBUG))
    323                 _log.debug("available outbound (" + avo + ") exceeds our outbound burst (" + _maxOutbound + "), so no supplement");
     322            //if (_log.shouldLog(Log.DEBUG))
     323            //    _log.debug("available outbound (" + avo + ") exceeds our outbound burst (" + _maxOutbound + "), so no supplement");
    324324            int uob = _unavailableOutboundBurst.getAndAdd(avo - _maxOutbound);
    325325            _availableOutbound.set(_maxOutbound);
     
    334334            if (want > (_maxOutbound - avo))
    335335                want = _maxOutbound - avo;
    336             if (_log.shouldLog(Log.DEBUG))
    337                 _log.debug("want to pull " + want + " from the outbound burst (" + _unavailableOutboundBurst + ") to supplement " + avo + " (max: " + _maxOutbound + ")");
     336            //if (_log.shouldLog(Log.DEBUG))
     337            //    _log.debug("want to pull " + want + " from the outbound burst (" + _unavailableOutboundBurst + ") to supplement " + avo + " (max: " + _maxOutbound + ")");
    338338           
    339339            if (want > 0) {
Note: See TracChangeset for help on using the changeset viewer.