Changeset 521eb2d


Ignore:
Timestamp:
Mar 13, 2015 4:53:08 PM (6 years ago)
Author:
dg2-new <dg2-new@…>
Branches:
master
Children:
0289cef
Parents:
0494266
Message:

Router: create router.integratedPeers (floodfills) stat, and allow graphing of it.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r0494266 r521eb2d  
     12015-03-13 dg
     2 * Router: create router.integratedPeers (floodfills) stat, and
     3   allow graphing of it.
     4
    152015-03-08 zzz
    26 * i2psnark: Increase min and default bandwidth
  • router/java/src/net/i2p/router/tasks/CoalesceStatsEvent.java

    r0494266 r521eb2d  
    3939        ctx.statManager().createRateStat("router.activeSendPeers", "How many peers we've sent to this minute", "Throttle", new long[] { 60*1000, 5*60*1000, 60*60*1000 });
    4040        ctx.statManager().createRequiredRateStat("router.fastPeers", _x("Known fast peers"), "Throttle", new long[] { 5*60*1000, 60*60*1000 });
     41        ctx.statManager().createRateStat("router.integratedPeers", _x("Known integrated (floodfill) peers"), "Throttle", new long[] { 60*1000, 5*60*1000, 60*60*1000 });
    4142        _maxMemory = Runtime.getRuntime().maxMemory();
    4243        String legend = "(Bytes)";
     
    6162        int highCap = getContext().profileOrganizer().countHighCapacityPeers();
    6263        getContext().statManager().addRateData("router.highCapacityPeers", highCap, 60*1000);
     64
     65        int integrated = getContext().peerManager().getPeersByCapability('f').size();
     66        getContext().statManager().addRateData("router.integratedPeers", integrated, 60*1000);
    6367
    6468        getContext().statManager().addRateData("bw.sendRate", (long)getContext().bandwidthLimiter().getSendBps());
Note: See TracChangeset for help on using the changeset viewer.