summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-29 19:37:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-29 19:37:56 +0000
commitdec1d4eba325e4f22aeab76784b436dd26e6d33a (patch)
tree994f860b35a4dc53dd6f4d1a1d8a49a676704ee7
parent8163a01cbb37687dc0dde36f9d5a6b3a5286d3eb (diff)
The mysql worker thread only sleeps 50 nanosecs between cycles, this is not enough to prevent it chomping on the CPU on most machines.
Increase to 1000, fixes bugs noticed on forum by JulianD, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8605 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/extra/m_mysql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index d8de9c6c2..de8b8f418 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -878,7 +878,7 @@ void* DispatcherThread(void* arg)
/* XXX: Unlock */
}
- usleep(50);
+ usleep(1000);
}
return NULL;