From 5233e335e90b2ef8fc423cf9fe907134b164e652 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 21 Mar 2012 00:00:32 +0000 Subject: Move the health monitoring stuff where it will do some good --- OpenSim/Region/Framework/Scenes/Scene.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f9b89fb..44ee453 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1232,9 +1232,6 @@ namespace OpenSim.Region.Framework.Scenes while (!shuttingdown) Update(-1); - - m_lastUpdate = Util.EnvironmentTickCount(); - m_firstHeartbeat = false; } finally { @@ -1441,6 +1438,9 @@ namespace OpenSim.Region.Framework.Scenes if (maintc > 0) Thread.Sleep(maintc); + m_lastUpdate = Util.EnvironmentTickCount(); + m_firstHeartbeat = false; + // Optionally warn if a frame takes double the amount of time that it should. // if (Util.EnvironmentTickCountSubtract(m_lastFrameTick, previousFrameTick) > (int)(MinFrameTime * 1000 * 2)) // m_log.WarnFormat( -- cgit v1.1