diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-27 10:13:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-27 10:13:22 +0000 |
commit | 747ae4b7a56cf94562b5b339ab3adc88653aa337 (patch) | |
tree | 87fc88cae65cc992717dc542026b02cc5f161ee9 /src | |
parent | 3ae2ad7553e2a12ecf5804f03f5943206f548770 (diff) |
Constant eating 20% cpu since last nights commit - test fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3361 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9eeec73a3..98418a967 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -606,7 +606,7 @@ bool InspIRCd::LoadModule(const char* filename) void InspIRCd::DoOneIteration(bool process_module_sockets) { - bool expire_run = false; + /*bool expire_run = false; int activefds[MAX_DESCRIPTORS]; int incomingSockfd; int in_port; @@ -615,7 +615,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) InspSocket* s_del = NULL; unsigned int numberactive; sockaddr_in sock_us; // our port number - socklen_t uslen; // length of our port number + socklen_t uslen;*/ // length of our port number /* time() seems to be a pretty expensive syscall, so avoid calling it too much. * Once per loop iteration is pleanty. @@ -803,6 +803,8 @@ int InspIRCd::Run() WritePID(Config->PID); /* main loop, this never returns */ + expire_run = false; + while (true) { DoOneIteration(true); |