Changeset 696c215


Ignore:
Timestamp:
Apr 16, 2016 4:21:28 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ebbf7f2
Parents:
b66bc39
Message:

Tunnel build stat tweak (commented out)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/BuildExecutor.java

    rb66bc39 r696c215  
    6969        _context.statManager().createRateStat("tunnel.buildFailFirstHop", "How often we fail to build a OB tunnel because we can't contact the first hop", "Tunnels", new long[] { 60*1000, 10*60*1000 });
    7070        _context.statManager().createRateStat("tunnel.buildReplySlow", "Build reply late, but not too late", "Tunnels", new long[] { 10*60*1000 });
     71        //ctx.statManager().createRateStat("tunnel.buildClientExpireIB", "", "Tunnels", new long[] { 60*60*1000 });
     72        //ctx.statManager().createRateStat("tunnel.buildClientExpireOB", "", "Tunnels", new long[] { 60*60*1000 });
     73        //ctx.statManager().createRateStat("tunnel.buildExploratoryExpireIB", "", "Tunnels", new long[] { 60*60*1000 });
     74        //ctx.statManager().createRateStat("tunnel.buildExploratoryExpireOB", "", "Tunnels", new long[] { 60*60*1000 });
    7175
    7276        // Get stat manager, get recognized bandwidth tiers
     
    185189                    if (ri != null) bwTier = ri.getBandwidthTier(); // Returns "Unknown" if none recognized
    186190                    // Record that a peer of the given tier expired
    187                     _context.statManager().addRateData("tunnel.tierExpire" + bwTier, 1, 0);
     191                    _context.statManager().addRateData("tunnel.tierExpire" + bwTier, 1);
    188192                    didNotReply(cfg.getReplyMessageId(), peer);
    189193                    // Blame everybody since we don't know whose fault it is.
     
    195199                if (pool != null)
    196200                    pool.buildComplete(cfg);
    197                 if (cfg.getDestination() == null)
    198                     _context.statManager().addRateData("tunnel.buildExploratoryExpire", 1, 0);
    199                 else
    200                     _context.statManager().addRateData("tunnel.buildClientExpire", 1, 0);
     201                if (cfg.getDestination() == null) {
     202                    _context.statManager().addRateData("tunnel.buildExploratoryExpire", 1);
     203                    //if (cfg.isInbound())
     204                    //    _context.statManager().addRateData("tunnel.buildExploratoryExpireIB", 1);
     205                    //else
     206                    //    _context.statManager().addRateData("tunnel.buildExploratoryExpireOB", 1);
     207                } else {
     208                    _context.statManager().addRateData("tunnel.buildClientExpire", 1);
     209                    //if (cfg.isInbound())
     210                    //    _context.statManager().addRateData("tunnel.buildClientExpireIB", 1);
     211                    //else
     212                    //    _context.statManager().addRateData("tunnel.buildClientExpireOB", 1);
     213                }
    201214            }
    202215        }
Note: See TracChangeset for help on using the changeset viewer.