Fix percentage stats to multiply by 100. Adjust container name for packetpool stats.

0.7.4-extended
Justin Clark-Casey (justincc) 2012-10-12 00:26:15 +01:00
parent 96b0d1276e
commit e175cf543c
2 changed files with 4 additions and 4 deletions

View File

@ -351,7 +351,7 @@ namespace OpenSim.Framework.Monitoring
if (c == 0)
return 0;
return (double)Antecedent / c;
return (double)Antecedent / c * 100;
}
set
@ -367,7 +367,7 @@ namespace OpenSim.Framework.Monitoring
public override string ToConsoleString()
{
return string.Format(
"{0}.{1}.{2} : {3:0.###}{4} ({5}/{6})",
"{0}.{1}.{2} : {3:0.##}{4} ({5}/{6})",
Category, Container, ShortName, Value, UnitName, Antecedent, Consequent);
}
}

View File

@ -48,14 +48,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
"PacketsReused",
"Packets reused",
"clientstack",
"simulator",
"packetpool",
StatVerbosity.Debug,
"Number of packets reused out of all requests to the packet pool");
private PercentageStat m_blocksReusedStat = new PercentageStat(
"BlocksReused",
"Blocks reused",
"clientstack",
"packetpool",
"simulator",
StatVerbosity.Debug,
"Number of data blocks reused out of all requests to the packet pool");