Changeset ee4d68c


Ignore:
Timestamp:
Aug 29, 2008 1:13:45 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
62bf269
Parents:
e064b0a
Message:
  • Stats: Remove tunnel.Bps.* stats when the tunnel pool is closed
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/stat/StatManager.java

    re064b0a ree4d68c  
    113113    }
    114114
     115    // Hope this doesn't cause any problems with unsynchronized accesses like addRateData() ...
     116    public void removeRateStat(String name) {
     117        synchronized (_rateStats) {
     118            _rateStats.remove(name);
     119        }
     120    }
     121
    115122    /** update the given frequency statistic, taking note that an event occurred (and recalculating all frequencies) */
    116123    public void updateFrequency(String name) {
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java

    re064b0a ree4d68c  
    9090        _lastSelectionPeriod = 0;
    9191        _lastSelected = null;
     92        _context.statManager().removeRateStat(_rateName);
    9293    }
    9394
Note: See TracChangeset for help on using the changeset viewer.