aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-07 08:28:48 +0000
committerTeravus Ovares2008-02-07 08:28:48 +0000
commitdba1f476c96c24807f409cf6a9fadde831456dae (patch)
tree4007ab1865896ed6d75b94cfa3a1d16b5b86a403
parent* This update contains a bucket-full of network optimizations. (diff)
downloadopensim-SC-dba1f476c96c24807f409cf6a9fadde831456dae.zip
opensim-SC-dba1f476c96c24807f409cf6a9fadde831456dae.tar.gz
opensim-SC-dba1f476c96c24807f409cf6a9fadde831456dae.tar.bz2
opensim-SC-dba1f476c96c24807f409cf6a9fadde831456dae.tar.xz
* Fixed negative child agents in the sim stats.
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 8a7402c..3a38bd2 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -317,6 +317,12 @@ namespace OpenSim.Region.Environment.Scenes
317 317
318 public int GetChildAgentCount() 318 public int GetChildAgentCount()
319 { 319 {
320 // some network situations come in where child agents get closed twice.
321 if (m_numChildAgents < 0)
322 {
323 m_numChildAgents = 0;
324 }
325
320 return m_numChildAgents; 326 return m_numChildAgents;
321 } 327 }
322 328