tolerate more messages/sec

metadata
Wenzel Jakob 2010-10-16 16:05:14 +02:00
parent 2004d65444
commit 472eb9926a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public:
int ms = m_timer->getMilliseconds();
if (ms > 1000) {
Float messagesPerSecond = m_messageCount / (ms / 1000.0f);
if (messagesPerSecond > 200) {
if (messagesPerSecond > 1000) {
emit textMessage(EError,
QString("Flood alert: received %1 messages in %2 ms! Ignoring "
"future messages to prevent the user interface from freezing. "