diff options
author | Justin Clark-Casey (justincc) | 2012-10-12 00:26:15 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-12 00:26:15 +0100 |
commit | 59a17ad676326d5affc2e221ef9c02166a85c6fd (patch) | |
tree | 144479c3cc3d3e6b52cbcabb1b499b4fbe7505ac /OpenSim/Framework/Monitoring | |
parent | Enable reuse of data blocks for ImprovedTerseObjectUpdate using existing Pack... (diff) | |
download | opensim-SC_OLD-59a17ad676326d5affc2e221ef9c02166a85c6fd.zip opensim-SC_OLD-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.gz opensim-SC_OLD-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.bz2 opensim-SC_OLD-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.xz |
Fix percentage stats to multiply by 100. Adjust container name for packetpool stats.
Diffstat (limited to 'OpenSim/Framework/Monitoring')
-rw-r--r-- | OpenSim/Framework/Monitoring/StatsManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index d7aff03..31989e5 100644 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs | |||
@@ -351,7 +351,7 @@ namespace OpenSim.Framework.Monitoring | |||
351 | if (c == 0) | 351 | if (c == 0) |
352 | return 0; | 352 | return 0; |
353 | 353 | ||
354 | return (double)Antecedent / c; | 354 | return (double)Antecedent / c * 100; |
355 | } | 355 | } |
356 | 356 | ||
357 | set | 357 | set |
@@ -367,7 +367,7 @@ namespace OpenSim.Framework.Monitoring | |||
367 | public override string ToConsoleString() | 367 | public override string ToConsoleString() |
368 | { | 368 | { |
369 | return string.Format( | 369 | return string.Format( |
370 | "{0}.{1}.{2} : {3:0.###}{4} ({5}/{6})", | 370 | "{0}.{1}.{2} : {3:0.##}{4} ({5}/{6})", |
371 | Category, Container, ShortName, Value, UnitName, Antecedent, Consequent); | 371 | Category, Container, ShortName, Value, UnitName, Antecedent, Consequent); |
372 | } | 372 | } |
373 | } | 373 | } |