(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 25 May 2010 08:43:30 +0000 (08:43 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 25 May 2010 08:43:30 +0000 (08:43 +0000)
src/hostlist/hostlist-client.c
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index 0c8327a92281e50e383f46c173ad07bafc1ca20b..7d8bbec21882e49b9fe50984fabe357a6cc43f0c 100644 (file)
  */
 #define MIN_CONNECTIONS 4
 
+/**
+ * Interval between two advertised hostlist tests
+ */
+#define TESTING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
+
 /**
  * A single hostlist obtained by hostlist advertisements
  */
@@ -1264,13 +1269,13 @@ handler_advertisement (void *cls,
   stat_testing_hostlist = GNUNET_YES;
   stat_testing_allowed = GNUNET_NO;
   ti_testing_intervall_task = GNUNET_SCHEDULER_add_delayed (sched,
-                                                         TESTING_INTERVALL,
+                                                         TESTING_INTERVAL,
                                                          &task_testing_intervall_reset,
                                                          NULL);
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
             "Testing new hostlist advertisements is locked for the next %u ms\n",
-            TESTING_INTERVALL);
+            TESTING_INTERVAL);
 
   ti_download_dispatcher_task = GNUNET_SCHEDULER_add_now (sched,
                                                      &task_download_dispatcher,
index dca4016d7523f7100a1d3f3500f5efeb64677a83..684df0f4e36961b920232be542ae6f28e1c98863 100644 (file)
@@ -467,7 +467,7 @@ check ()
   failed = GNUNET_NO;
 
   if (learned_hostlist_downloaded == GNUNET_YES)
-    return GNUNET_YES;
+    return GNUNET_NO;
 
   if (timeout == GNUNET_YES)
   {