aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneGraph.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
index 3ffa5c3..8476344 100644
--- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
@@ -694,6 +694,24 @@ namespace OpenSim.Region.Environment.Scenes
694 } 694 }
695 } 695 }
696 696
697 public void RecalculateStats()
698 {
699 List<ScenePresence> SPList = GetScenePresences();
700 int rootcount = 0;
701 int childcount = 0;
702
703 foreach (ScenePresence user in SPList)
704 {
705 if (user.IsChildAgent)
706 childcount++;
707 else
708 rootcount++;
709 }
710 m_numRootAgents = rootcount;
711 m_numChildAgents = childcount;
712
713 }
714
697 public int GetChildAgentCount() 715 public int GetChildAgentCount()
698 { 716 {
699 // some network situations come in where child agents get closed twice. 717 // some network situations come in where child agents get closed twice.
@@ -1748,5 +1766,7 @@ namespace OpenSim.Region.Environment.Scenes
1748 } 1766 }
1749 1767
1750 #endregion 1768 #endregion
1769
1770
1751 } 1771 }
1752} 1772}