aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Monitoring/Stats/Stat.cs15
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 }