diff options
author | Robert Adams | 2013-07-12 14:04:14 -0700 |
---|---|---|
committer | Robert Adams | 2013-07-12 14:04:14 -0700 |
commit | fa02f28dbfef9b9dc3621f5bbd6b026c827459a5 (patch) | |
tree | 178edf9db976b49c1272cf4566661af27986d47f /OpenSim/Framework/Monitoring/Stats/Stat.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-fa02f28dbfef9b9dc3621f5bbd6b026c827459a5.zip opensim-SC-fa02f28dbfef9b9dc3621f5bbd6b026c827459a5.tar.gz opensim-SC-fa02f28dbfef9b9dc3621f5bbd6b026c827459a5.tar.bz2 opensim-SC-fa02f28dbfef9b9dc3621f5bbd6b026c827459a5.tar.xz |
Add ToOSDMap() overrides to the Stat subclass CounterStat.
Add a GetStatsAsOSDMap method to StatsManager which allows the filtered
fetching of stats for eventual returning over the internets.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index c57ee0c..9629b6e 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs | |||
@@ -242,6 +242,7 @@ namespace OpenSim.Framework.Monitoring | |||
242 | ret.Add("Description", OSD.FromString(Description)); | 242 | ret.Add("Description", OSD.FromString(Description)); |
243 | ret.Add("UnitName", OSD.FromString(UnitName)); | 243 | ret.Add("UnitName", OSD.FromString(UnitName)); |
244 | ret.Add("Value", OSD.FromReal(Value)); | 244 | ret.Add("Value", OSD.FromReal(Value)); |
245 | ret.Add("StatType", "Stat"); // used by overloading classes to denote type of stat | ||
245 | 246 | ||
246 | return ret; | 247 | return ret; |
247 | } | 248 | } |