Commits

nenolod  committed 8a6dafc

[svn] - fix for 100% cpu use

  • Participants
  • Parent commits a312c56

Comments (0)

Files changed (3)

+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.

File include/serno.h

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

File libcharybdis/commio.c

  *  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"
 	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];