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

This commit is contained in:
zzz committed 2008-08-29 13:13:45 +00:00
1 parent e064b0a0e1
commit ee4d68cf6a
2 files changed
+8

No files matched your search

@@ -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);