diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/Stats')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index e095801..bd757d0 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs | |||
@@ -238,6 +238,17 @@ namespace OpenSim.Framework.Monitoring | |||
238 | return sb.ToString(); | 238 | return sb.ToString(); |
239 | } | 239 | } |
240 | 240 | ||
241 | public virtual OSDMap ToBriefOSDMap() | ||
242 | { | ||
243 | OSDMap ret = new OSDMap(); | ||
244 | |||
245 | ret.Add("Value", OSD.FromReal(Value)); | ||
246 | |||
247 | double lastChangeOverTime, averageChangeOverTime; | ||
248 | |||
249 | return ret; | ||
250 | } | ||
251 | |||
241 | public virtual OSDMap ToOSDMap() | 252 | public virtual OSDMap ToOSDMap() |
242 | { | 253 | { |
243 | OSDMap ret = new OSDMap(); | 254 | OSDMap ret = new OSDMap(); |
@@ -322,4 +333,4 @@ namespace OpenSim.Framework.Monitoring | |||
322 | } | 333 | } |
323 | } | 334 | } |
324 | } | 335 | } |
325 | } \ No newline at end of file | 336 | } |