Prevent slplugin from using too much cpu time.

This commit is contained in:
Shyotl
2011-08-18 00:29:46 -05:00
parent 48abb8280f
commit 210e9ed78b
2 changed files with 2 additions and 1 deletions

View File

@@ -433,7 +433,7 @@ void LLPluginProcessChild::receiveMessageRaw(const std::string &message)
}
else if(message_name == "sleep_time")
{
mSleepTime = parsed.getValueReal("time");
mSleepTime = llmax(parsed.getValueReal("time"), 1.0 / 100.0); // clamp to maximum of 100Hz
}
else if(message_name == "crash")
{