tolerate more messages/sec
parent
2004d65444
commit
472eb9926a
|
@ -55,7 +55,7 @@ public:
|
||||||
int ms = m_timer->getMilliseconds();
|
int ms = m_timer->getMilliseconds();
|
||||||
if (ms > 1000) {
|
if (ms > 1000) {
|
||||||
Float messagesPerSecond = m_messageCount / (ms / 1000.0f);
|
Float messagesPerSecond = m_messageCount / (ms / 1000.0f);
|
||||||
if (messagesPerSecond > 200) {
|
if (messagesPerSecond > 1000) {
|
||||||
emit textMessage(EError,
|
emit textMessage(EError,
|
||||||
QString("Flood alert: received %1 messages in %2 ms! Ignoring "
|
QString("Flood alert: received %1 messages in %2 ms! Ignoring "
|
||||||
"future messages to prevent the user interface from freezing. "
|
"future messages to prevent the user interface from freezing. "
|
||||||
|
|
Loading…
Reference in New Issue