[netfilter-cvslog] r7285 - trunk/conntrack-tools/src

pablo at netfilter.org pablo at netfilter.org
Tue Jan 22 02:45:57 CET 2008


Author: pablo at netfilter.org
Date: 2008-01-22 02:45:57 +0100 (Tue, 22 Jan 2008)
New Revision: 7285

Modified:
   trunk/conntrack-tools/src/sync-alarm.c
Log:
fix inconsistent alarm update in cache_alarm_update


Modified: trunk/conntrack-tools/src/sync-alarm.c
===================================================================
--- trunk/conntrack-tools/src/sync-alarm.c	2008-01-22 01:36:32 UTC (rev 7284)
+++ trunk/conntrack-tools/src/sync-alarm.c	2008-01-22 01:45:57 UTC (rev 7285)
@@ -57,7 +57,9 @@
 static void cache_alarm_update(struct us_conntrack *u, void *data)
 {
 	struct alarm_list *alarm = data;
-	add_alarm(alarm, random() % CONFIG(refresh) + 1, random() % 999999 + 1);
+	add_alarm(alarm, 
+		  random() % CONFIG(refresh) + 1,
+		  ((random() % 5 + 1)  * 200000) - 1);
 }
 
 static void cache_alarm_destroy(struct us_conntrack *u, void *data)




More information about the netfilter-cvslog mailing list