Changeset 8098d70


Ignore:
Timestamp:
Jun 8, 2015 4:39:41 PM (5 years ago)
Author:
dg2-new <dg2-new@…>
Branches:
master
Children:
97aeecd8
Parents:
fa8c390
Message:

Make netDb.storeFloodNew graphable for testing (#1195)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    rfa8c390 r8098d70  
    112015-06-08 dg
    22 * Language fixes
     3 * Make netDb.storeFloodNew graphable for testing (#1195)
    34
    452015-06-06 str4d
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillDatabaseStoreMessageHandler.java

    rfa8c390 r8098d70  
    2929        _facade = facade;
    3030        // following are for HFDSMJ
    31         context.statManager().createRateStat("netDb.storeHandled", "How many netDb store messages have we handled?", "NetworkDatabase", new long[] { 60*60*1000l });
     31        context.statManager().createRateStat("netDb.storeHandled", "How many netDb store messages have we handled?", "NetworkDatabase", new long[] { 60*1000, 60*60*1000l });
    3232        context.statManager().createRateStat("netDb.storeLeaseSetHandled", "How many leaseSet store messages have we handled?", "NetworkDatabase", new long[] { 60*60*1000l });
    3333        context.statManager().createRateStat("netDb.storeRouterInfoHandled", "How many routerInfo store messages have we handled?", "NetworkDatabase", new long[] { 60*60*1000l });
  • router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java

    rfa8c390 r8098d70  
    216216                //else if (!_message.getRouterInfo().isHidden())
    217217                long floodEnd = System.currentTimeMillis();
    218                 getContext().statManager().addRateData("netDb.storeFloodNew", floodEnd-floodBegin);
     218                getContext().statManager().addRateData("netDb.storeFloodNew", floodEnd-floodBegin, 60*1000);
    219219            } else {
    220220                // don't flood it *again*
Note: See TracChangeset for help on using the changeset viewer.