diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/StatsManager.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/StatsManager.cs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index 116b2c0..4844336 100644 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs | |||
@@ -207,7 +207,7 @@ namespace OpenSim.Framework.Monitoring | |||
207 | return false; | 207 | return false; |
208 | 208 | ||
209 | newContainer = new Dictionary<string, Stat>(container); | 209 | newContainer = new Dictionary<string, Stat>(container); |
210 | newContainer.Remove(stat.UniqueName); | 210 | newContainer.Remove(stat.ShortName); |
211 | 211 | ||
212 | newCategory = new Dictionary<string, Dictionary<string, Stat>>(category); | 212 | newCategory = new Dictionary<string, Dictionary<string, Stat>>(category); |
213 | newCategory.Remove(stat.Container); | 213 | newCategory.Remove(stat.Container); |
@@ -279,11 +279,6 @@ namespace OpenSim.Framework.Monitoring | |||
279 | public class Stat | 279 | public class Stat |
280 | { | 280 | { |
281 | /// <summary> | 281 | /// <summary> |
282 | /// Unique stat name used for indexing. Each ShortName in a Category must be unique. | ||
283 | /// </summary> | ||
284 | public string UniqueName { get; private set; } | ||
285 | |||
286 | /// <summary> | ||
287 | /// Category of this stat (e.g. cache, scene, etc). | 282 | /// Category of this stat (e.g. cache, scene, etc). |
288 | /// </summary> | 283 | /// </summary> |
289 | public string Category { get; private set; } | 284 | public string Category { get; private set; } |
@@ -376,13 +371,6 @@ namespace OpenSim.Framework.Monitoring | |||
376 | PullAction = pullAction; | 371 | PullAction = pullAction; |
377 | 372 | ||
378 | Verbosity = verbosity; | 373 | Verbosity = verbosity; |
379 | |||
380 | UniqueName = GenUniqueName(Container, Category, ShortName); | ||
381 | } | ||
382 | |||
383 | public static string GenUniqueName(string container, string category, string shortName) | ||
384 | { | ||
385 | return string.Format("{0}+{1}+{2}", container, category, shortName); | ||
386 | } | 374 | } |
387 | 375 | ||
388 | public virtual string ToConsoleString() | 376 | public virtual string ToConsoleString() |