Fix a case where an idle sim can eat 100% of a core

mysql-performance
Melanie 2009-12-20 16:44:31 +00:00
parent 26e3a8ee4b
commit 37b07aa9ec
1 changed files with 1 additions and 1 deletions

View File

@ -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