* Added a way for the sim stats reporter to say to the scene that the stats are illogical.

This commit is contained in:
Teravus Ovares
2009-01-06 00:07:24 +00:00
parent 0c3426935e
commit 0d1b867500
3 changed files with 47 additions and 5 deletions

View File

@@ -694,6 +694,24 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void RecalculateStats()
{
List<ScenePresence> SPList = GetScenePresences();
int rootcount = 0;
int childcount = 0;
foreach (ScenePresence user in SPList)
{
if (user.IsChildAgent)
childcount++;
else
rootcount++;
}
m_numRootAgents = rootcount;
m_numChildAgents = childcount;
}
public int GetChildAgentCount()
{
// some network situations come in where child agents get closed twice.
@@ -1748,5 +1766,7 @@ namespace OpenSim.Region.Environment.Scenes
}
#endregion
}
}