From 2d5d446cd83d7af7e7bbb8156f0a40b03a5ef366 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 25 May 2010 08:43:30 +0000 Subject: [PATCH] --- src/hostlist/hostlist-client.c | 9 +++++++-- src/hostlist/test_gnunet_daemon_hostlist_learning.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 0c8327a92..7d8bbec21 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -45,6 +45,11 @@ */ #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, diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index dca4016d7..684df0f4e 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c @@ -467,7 +467,7 @@ check () failed = GNUNET_NO; if (learned_hostlist_downloaded == GNUNET_YES) - return GNUNET_YES; + return GNUNET_NO; if (timeout == GNUNET_YES) { -- 2.25.1