summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-17 03:18:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-17 03:18:20 +0000
commitc1b76d74655d325d571b7791a12fc6ccda6c9745 (patch)
tree36fa5df5a3075937948deac537948f67d789ecab /src
parent49dffe67b2e97dc1b7bdfa3ca030f295f2b05634 (diff)
Fine-tuning epoll parameters
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1412 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
1 files changed, 3 insertions, 3 deletions
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 <sys/epoll.h>
-#define EP_DELAY 35
+#define EP_DELAY 50
#endif
#include <time.h>
@@ -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