From dec1d4eba325e4f22aeab76784b436dd26e6d33a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 29 Nov 2007 19:37:56 +0000 Subject: 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 --- src/modules/extra/m_mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3