From 61e3b8f2761cef78bd808c7b39e51ea9c318490f Mon Sep 17 00:00:00 2001 From: nenolod Date: Mon, 5 Mar 2007 09:35:17 -0800 Subject: [PATCH] [svn] - fix for 100% cpu use --- ChangeLog | 9 +++++++++ include/serno.h | 2 +- libcharybdis/commio.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e25266a..ed39c07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) Log: - clear up use of fd_table in ircd. diff --git a/include/serno.h b/include/serno.h index af92fcb..b5d4f38 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070305-3233" +#define SERNO "20070305-3235" diff --git a/libcharybdis/commio.c b/libcharybdis/commio.c index 49cab12..4b397e1 100644 --- a/libcharybdis/commio.c +++ b/libcharybdis/commio.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * 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" @@ -324,7 +324,7 @@ comm_checktimeouts(void *notused) int i; dlink_node *n, *n2; - for (i = 0; i <= FD_HASH_SIZE; i) + for (i = 0; i <= FD_HASH_SIZE; i++) { bucket = &fd_table[i];