From 37b07aa9ec1d4bb9c84eebc5f9d99b4d70d6d05e Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 20 Dec 2009 16:44:31 +0000 Subject: Fix a case where an idle sim can eat 100% of a core --- OpenSim/Region/Framework/Scenes/Scene.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index eb284c1..f79eb5d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1314,7 +1314,7 @@ namespace OpenSim.Region.Framework.Scenes maintc = Util.EnvironmentTickCountSubtract(maintc); maintc = (int)(m_timespan * 1000) - maintc; - if ((maintc < (m_timespan * 1000)) && maintc > 0) + if (maintc > 0) Thread.Sleep(maintc); // Tell the watchdog that this thread is still alive -- cgit v1.1