I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ee4d68cf authored by zzz's avatar zzz
Browse files

* Stats: Remove tunnel.Bps.* stats when the tunnel pool is closed

parent e064b0a0
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,13 @@ public class StatManager {
}
}
// Hope this doesn't cause any problems with unsynchronized accesses like addRateData() ...
public void removeRateStat(String name) {
synchronized (_rateStats) {
_rateStats.remove(name);
}
}
/** update the given frequency statistic, taking note that an event occurred (and recalculating all frequencies) */
public void updateFrequency(String name) {
FrequencyStat freq = (FrequencyStat) _frequencyStats.get(name);
......
......@@ -89,6 +89,7 @@ public class TunnelPool {
_alive = false;
_lastSelectionPeriod = 0;
_lastSelected = null;
_context.statManager().removeRateStat(_rateName);
}
TunnelPoolManager getManager() { return _manager; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment