From c1b76d74655d325d571b7791a12fc6ccda6c9745 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 17 May 2005 03:18:20 +0000 Subject: Fine-tuning epoll parameters git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1412 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index aa8d03138..7bcfd6b69 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -36,7 +36,7 @@ using namespace std; #ifdef USE_EPOLL #include -#define EP_DELAY 35 +#define EP_DELAY 50 #endif #include @@ -2795,7 +2795,7 @@ int InspIRCd(char** argv, int argc) user_hash::iterator count2 = clientlist.begin(); #ifdef USE_EPOLL - i = epoll_wait(sep, event, 1, EP_DELAY*2); + i = epoll_wait(sep, event, 1, EP_DELAY); #ifdef _POSIX_PRIORITY_SCHEDULING sched_yield(); #endif @@ -3302,7 +3302,7 @@ int InspIRCd(char** argv, int argc) #ifdef _POSIX_PRIORITY_SCHEDULING sched_yield(); #endif - i = epoll_wait(lep, event, 32, EP_DELAY*2); + i = epoll_wait(lep, event, 32, EP_DELAY); #ifdef _POSIX_PRIORITY_SCHEDULING sched_yield(); #endif -- cgit v1.2.3