Changeset 1444f12


Ignore:
Timestamp:
Jun 21, 2013 3:13:16 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
322e76d
Parents:
5bd028bf
Message:

lookup stat tweak

Location:
router/java/src/net/i2p/router/networkdb/kademlia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java

    r5bd028bf r1444f12  
    5151        _context.statManager().createRequiredRateStat("netDb.successTime", "Time for successful lookup (ms)", "NetworkDatabase", new long[] { 60*60*1000l, 24*60*60*1000l });
    5252        _context.statManager().createRateStat("netDb.failedTime", "How long a failed search takes", "NetworkDatabase", new long[] { 60*60*1000l, 24*60*60*1000l });
    53         _context.statManager().createRateStat("netDb.retries", "How many additional queries for an iterative search", "NetworkDatabase", new long[] { 60*60*1000l });
     53        _context.statManager().createRateStat("netDb.failedRetries", "How many additional queries for an iterative search", "NetworkDatabase", new long[] { 60*60*1000l });
     54        _context.statManager().createRateStat("netDb.successRetries", "How many additional queries for an iterative search", "NetworkDatabase", new long[] { 60*60*1000l });
    5455        _context.statManager().createRateStat("netDb.failedAttemptedPeers", "How many peers we sent a search to when the search fails", "NetworkDatabase", new long[] { 10*60*1000l });
    5556        _context.statManager().createRateStat("netDb.successPeers", "How many peers are contacted in a successful search", "NetworkDatabase", new long[] { 60*60*1000l, 24*60*60*1000l });
  • router/java/src/net/i2p/router/networkdb/kademlia/IterativeSearchJob.java

    r5bd028bf r1444f12  
    381381        }
    382382        getContext().statManager().addRateData("netDb.failedTime", time, 0);
    383         getContext().statManager().addRateData("netDb.retries", Math.max(0, tries - 1), 0);
     383        getContext().statManager().addRateData("netDb.failedRetries", Math.max(0, tries - 1), 0);
    384384        for (Job j : _onFailed) {
    385385            getContext().jobQueue().addJob(j);
     
    415415                      ", peers queried: " + tries);
    416416        getContext().statManager().addRateData("netDb.successTime", time, 0);
    417         getContext().statManager().addRateData("netDb.retries", tries - 1, 0);
     417        getContext().statManager().addRateData("netDb.successRetries", tries - 1, 0);
    418418        for (Job j : _onFind) {
    419419            getContext().jobQueue().addJob(j);
Note: See TracChangeset for help on using the changeset viewer.