aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMelanie2010-12-03 02:37:08 +0100
committerMelanie2010-12-03 02:37:08 +0100
commitec01936d38f6a082ec7f9d5ba4a07d8150d73ea3 (patch)
tree392c2a583cd278ec4a3184affca322f3c27a6c47 /OpenSim/Region/Framework/Scenes/Scene.cs
parentVarious bug fixes for appearance handling (diff)
downloadopensim-SC-ec01936d38f6a082ec7f9d5ba4a07d8150d73ea3.zip
opensim-SC-ec01936d38f6a082ec7f9d5ba4a07d8150d73ea3.tar.gz
opensim-SC-ec01936d38f6a082ec7f9d5ba4a07d8150d73ea3.tar.bz2
opensim-SC-ec01936d38f6a082ec7f9d5ba4a07d8150d73ea3.tar.xz
Change the way sim health reporting reports sim startup
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs20
1 files changed, 14 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 83887b4..3c2cd9b 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -569,8 +569,8 @@ namespace OpenSim.Region.Framework.Scenes
569 m_regionName = m_regInfo.RegionName; 569 m_regionName = m_regInfo.RegionName;
570 m_datastore = m_regInfo.DataStore; 570 m_datastore = m_regInfo.DataStore;
571 m_lastUpdate = Util.EnvironmentTickCount(); 571 m_lastUpdate = Util.EnvironmentTickCount();
572 m_lastIncoming = Util.EnvironmentTickCount(); 572 m_lastIncoming = 0;
573 m_lastOutgoing = Util.EnvironmentTickCount(); 573 m_lastOutgoing = 0;
574 574
575 m_physicalPrim = physicalPrim; 575 m_physicalPrim = physicalPrim;
576 m_seeIntoRegionFromNeighbor = SeeIntoRegionFromNeighbor; 576 m_seeIntoRegionFromNeighbor = SeeIntoRegionFromNeighbor;
@@ -4560,26 +4560,34 @@ namespace OpenSim.Region.Framework.Scenes
4560 // 5 = We have seen a new user enter within the past 4 minutes 4560 // 5 = We have seen a new user enter within the past 4 minutes
4561 // which can be seen as positive confirmation of sim health 4561 // which can be seen as positive confirmation of sim health
4562 // 4562 //
4563 if (m_firstHeartbeat || (m_lastIncoming == 0 && m_lastOutgoing == 0))
4564 {
4565 // We're still starting
4566 // 0 means "in startup", it can't happen another way, since
4567 // to get here, we must be able to accept http connections
4568 return 0;
4569 }
4570
4563 int health=1; // Start at 1, means we're up 4571 int health=1; // Start at 1, means we're up
4564 4572
4565 if (m_firstHeartbeat || ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000)) 4573 if (Util.EnvironmentTickCountSubtract(m_lastUpdate) < 1000)
4566 health+=1; 4574 health+=1;
4567 else 4575 else
4568 return health; 4576 return health;
4569 4577
4570 if (m_firstHeartbeat || ((Util.EnvironmentTickCountSubtract(m_lastIncoming)) < 1000)) 4578 if (Util.EnvironmentTickCountSubtract(m_lastIncoming) < 1000)
4571 health+=1; 4579 health+=1;
4572 else 4580 else
4573 return health; 4581 return health;
4574 4582
4575 if (m_firstHeartbeat || ((Util.EnvironmentTickCountSubtract(m_lastOutgoing)) < 1000)) 4583 if (Util.EnvironmentTickCountSubtract(m_lastOutgoing) < 1000)
4576 health+=1; 4584 health+=1;
4577 else 4585 else
4578 return health; 4586 return health;
4579 4587
4580 // A login in the last 4 mins? We can't be doing too badly 4588 // A login in the last 4 mins? We can't be doing too badly
4581 // 4589 //
4582 if ((Util.EnvironmentTickCountSubtract(m_LastLogin)) < 240000) 4590 if (Util.EnvironmentTickCountSubtract(m_LastLogin) < 240000)
4583 health++; 4591 health++;
4584 else 4592 else
4585 return health; 4593 return health;