diff options
author | Justin Clark-Casey (justincc) | 2013-07-23 17:23:16 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-07-23 17:23:16 +0100 |
commit | 76e46d0158461a29e6ef358ba8cb7b7323cc0c05 (patch) | |
tree | 4549196f0b8f5552ceb72e9a76fdca6fdc8f061a /OpenSim/Framework/Monitoring | |
parent | BulletSim: Turn on center-of-mass calculation by default. (diff) | |
download | opensim-SC_OLD-76e46d0158461a29e6ef358ba8cb7b7323cc0c05.zip opensim-SC_OLD-76e46d0158461a29e6ef358ba8cb7b7323cc0c05.tar.gz opensim-SC_OLD-76e46d0158461a29e6ef358ba8cb7b7323cc0c05.tar.bz2 opensim-SC_OLD-76e46d0158461a29e6ef358ba8cb7b7323cc0c05.tar.xz |
Improve spacing between data and units on console stats display
Diffstat (limited to 'OpenSim/Framework/Monitoring')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index cc2c947..f2329ce 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs | |||
@@ -225,7 +225,13 @@ namespace OpenSim.Framework.Monitoring | |||
225 | public virtual string ToConsoleString() | 225 | public virtual string ToConsoleString() |
226 | { | 226 | { |
227 | StringBuilder sb = new StringBuilder(); | 227 | StringBuilder sb = new StringBuilder(); |
228 | sb.AppendFormat("{0}.{1}.{2} : {3} {4}", Category, Container, ShortName, Value, UnitName); | 228 | sb.AppendFormat( |
229 | "{0}.{1}.{2} : {3}{4}", | ||
230 | Category, | ||
231 | Container, | ||
232 | ShortName, | ||
233 | Value, | ||
234 | UnitName == null || UnitName == "" ? "" : string.Format(" {0}", UnitName)); | ||
229 | 235 | ||
230 | AppendMeasuresOfInterest(sb); | 236 | AppendMeasuresOfInterest(sb); |
231 | 237 | ||
@@ -281,8 +287,11 @@ namespace OpenSim.Framework.Monitoring | |||
281 | double averageChangeOverTime = totalChange / divisor / (Watchdog.WATCHDOG_INTERVAL_MS / 1000); | 287 | double averageChangeOverTime = totalChange / divisor / (Watchdog.WATCHDOG_INTERVAL_MS / 1000); |
282 | 288 | ||
283 | sb.AppendFormat( | 289 | sb.AppendFormat( |
284 | ", {0:0.##} {1}/s, {2:0.##} {3}/s", | 290 | ", {0:0.##}{1}/s, {2:0.##}{3}/s", |
285 | lastChangeOverTime, UnitName, averageChangeOverTime, UnitName); | 291 | lastChangeOverTime, |
292 | UnitName == null || UnitName == "" ? "" : string.Format(" {0}", UnitName), | ||
293 | averageChangeOverTime, | ||
294 | UnitName == null || UnitName == "" ? "" : string.Format(" {0}", UnitName)); | ||
286 | } | 295 | } |
287 | } | 296 | } |
288 | } | 297 | } |