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 | |
parent | Enable reuse of data blocks for ImprovedTerseObjectUpdate using existing Pack... (diff) | |
download | opensim-SC-59a17ad676326d5affc2e221ef9c02166a85c6fd.zip opensim-SC-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.gz opensim-SC-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.bz2 opensim-SC-59a17ad676326d5affc2e221ef9c02166a85c6fd.tar.xz |
Fix percentage stats to multiply by 100. Adjust container name for packetpool stats.
-rw-r--r-- | OpenSim/Framework/Monitoring/StatsManager.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | 4 |
2 files changed, 4 insertions, 4 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 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs index fd6b0ed..a8a1bfe 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | |||
@@ -48,14 +48,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
48 | "PacketsReused", | 48 | "PacketsReused", |
49 | "Packets reused", | 49 | "Packets reused", |
50 | "clientstack", | 50 | "clientstack", |
51 | "simulator", | 51 | "packetpool", |
52 | StatVerbosity.Debug, | 52 | StatVerbosity.Debug, |
53 | "Number of packets reused out of all requests to the packet pool"); | 53 | "Number of packets reused out of all requests to the packet pool"); |
54 | 54 | ||
55 | private PercentageStat m_blocksReusedStat = new PercentageStat( | 55 | private PercentageStat m_blocksReusedStat = new PercentageStat( |
56 | "BlocksReused", | 56 | "BlocksReused", |
57 | "Blocks reused", | 57 | "Blocks reused", |
58 | "clientstack", | 58 | "packetpool", |
59 | "simulator", | 59 | "simulator", |
60 | StatVerbosity.Debug, | 60 | StatVerbosity.Debug, |
61 | "Number of data blocks reused out of all requests to the packet pool"); | 61 | "Number of data blocks reused out of all requests to the packet pool"); |