diff options
author | Melanie Thielker | 2015-02-18 01:14:08 +0100 |
---|---|---|
committer | Melanie Thielker | 2015-02-18 01:14:08 +0100 |
commit | fed566b8d3bb480ec89615e011934c10023a4dad (patch) | |
tree | 13c497f738651fe766ae115c92ee3a06fe5efe24 /OpenSim/Framework/Monitoring/Stats/Stat.cs | |
parent | fix axis locking Amotor (diff) | |
download | opensim-SC_OLD-fed566b8d3bb480ec89615e011934c10023a4dad.zip opensim-SC_OLD-fed566b8d3bb480ec89615e011934c10023a4dad.tar.gz opensim-SC_OLD-fed566b8d3bb480ec89615e011934c10023a4dad.tar.bz2 opensim-SC_OLD-fed566b8d3bb480ec89615e011934c10023a4dad.tar.xz |
Abbreviate the stats by removing unneeded and redundant elements. Human readability is overrated. Also add a (hardcoded) password.
Diffstat (limited to 'OpenSim/Framework/Monitoring/Stats/Stat.cs')
-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 | } |