From: Matthias Wachs Date: Tue, 25 May 2010 08:43:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21587 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d5d446cd83d7af7e7bbb8156f0a40b03a5ef366;p=oweals%2Fgnunet.git --- 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) {