summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-13 12:02:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-13 12:02:02 +0000
commitbcc0d749055e337417ae694afaad278c9b84b8bb (patch)
tree3980b146049e7d327f24b72499608d06ba59b99e /src/inspircd.cpp
parentcb1a51416b4e9e931281ad51db6988d958daab90 (diff)
More cpu usage fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@569 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp12
1 files changed, 1 insertions, 11 deletions
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 */