diff options
author | Teravus Ovares | 2009-01-06 00:07:24 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-06 00:07:24 +0000 |
commit | 0d1b8675004a37c1a5590a6825b5204b08e285e6 (patch) | |
tree | 645d251a771f4581ba16398324f8a4059918e9d1 /OpenSim/Region/Environment/Scenes/SceneGraph.cs | |
parent | Use correct name for friendship offer. Fixes Mantis #2959. (diff) | |
download | opensim-SC-0d1b8675004a37c1a5590a6825b5204b08e285e6.zip opensim-SC-0d1b8675004a37c1a5590a6825b5204b08e285e6.tar.gz opensim-SC-0d1b8675004a37c1a5590a6825b5204b08e285e6.tar.bz2 opensim-SC-0d1b8675004a37c1a5590a6825b5204b08e285e6.tar.xz |
* Added a way for the sim stats reporter to say to the scene that the stats are illogical.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneGraph.cs | 20 |
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 | } |