Temporary stop CAPS service points from being added to stats as this can be a huge number.

A stop gap solution - a better one may be to improve stats display on simulator-side.
Caps information is still accessible via the "show caps stats by user" and "show caps stats by cap" commands
0.8.0.3
Justin Clark-Casey (justincc) 2014-07-26 01:41:03 +01:00 committed by Justin Clark-Casey
parent 2f7d950ead
commit 3410b36d76
1 changed files with 17 additions and 12 deletions

View File

@ -63,6 +63,10 @@ namespace OpenSim.Framework.Servers.HttpServer
m_httpMethod = httpMethod; m_httpMethod = httpMethod;
m_path = path; m_path = path;
// FIXME: A very temporary measure to stop the simulator stats being overwhelmed with user CAPS info.
// Needs to be fixed properly in stats display
if (!path.StartsWith("/CAPS/"))
{
StatsManager.RegisterStat( StatsManager.RegisterStat(
new Stat( new Stat(
"requests", "requests",
@ -76,6 +80,7 @@ namespace OpenSim.Framework.Servers.HttpServer
s => s.Value = RequestsReceived, s => s.Value = RequestsReceived,
StatVerbosity.Debug)); StatVerbosity.Debug));
} }
}
public virtual string Path public virtual string Path
{ {