aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring/Stats
diff options
context:
space:
mode:
authorMelanie Thielker2015-02-18 01:14:08 +0100
committerMelanie Thielker2015-02-18 01:14:08 +0100
commitfed566b8d3bb480ec89615e011934c10023a4dad (patch)
tree13c497f738651fe766ae115c92ee3a06fe5efe24 /OpenSim/Framework/Monitoring/Stats
parentfix axis locking Amotor (diff)
downloadopensim-SC-fed566b8d3bb480ec89615e011934c10023a4dad.zip
opensim-SC-fed566b8d3bb480ec89615e011934c10023a4dad.tar.gz
opensim-SC-fed566b8d3bb480ec89615e011934c10023a4dad.tar.bz2
opensim-SC-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')
-rw-r--r--OpenSim/Framework/Monitoring/Stats/Stat.cs13
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}