[svn] - fix for 100% cpu use

This commit is contained in:
nenolod 2007-03-05 09:35:17 -08:00
parent d0e1e8ee78
commit 61e3b8f276
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
nenolod 2007/03/05 17:31:35 UTC (20070305-3235)
Log:
- rework comm_checktimeouts() to use the hashtable in an efficient manner.
Changes: Modified:
+37 -25 trunk/libcharybdis/commio.c (File Modified)
nenolod 2007/03/05 17:28:27 UTC (20070305-3233) nenolod 2007/03/05 17:28:27 UTC (20070305-3233)
Log: Log:
- clear up use of fd_table in ircd. - clear up use of fd_table in ircd.

View File

@ -1 +1 @@
#define SERNO "20070305-3233" #define SERNO "20070305-3235"

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * USA
* *
* $Id: commio.c 3235 2007-03-05 17:31:35Z nenolod $ * $Id: commio.c 3237 2007-03-05 17:35:17Z nenolod $
*/ */
#include "libcharybdis.h" #include "libcharybdis.h"
@ -324,7 +324,7 @@ comm_checktimeouts(void *notused)
int i; int i;
dlink_node *n, *n2; dlink_node *n, *n2;
for (i = 0; i <= FD_HASH_SIZE; i) for (i = 0; i <= FD_HASH_SIZE; i++)
{ {
bucket = &fd_table[i]; bucket = &fd_table[i];