From bcc0d749055e337417ae694afaad278c9b84b8bb Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 13 Apr 2004 12:02:02 +0000 Subject: More cpu usage fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@569 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9a725e73c..597705015 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -7296,18 +7296,8 @@ int InspIRCd(void) FD_SET (openSockfd[count], &selectFds); } - /* added timeout! select was waiting forever... wank... :/ */ - tv.tv_usec = 0; - - flip_flop++; reap_counter++; - if (flip_flop > 10) - { - tv.tv_usec = 1; - flip_flop = 0; - } - - tv.tv_sec = 0; + tv.tv_usec = 1; selectResult = select(MAXSOCKS, &selectFds, NULL, NULL, &tv); /* select is reporting a waiting socket. Poll them all to find out which */ -- cgit v1.2.3