[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11492 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11492 - gnunet/src/hostlist |
Date: |
Tue, 25 May 2010 10:43:31 +0200 |
Author: wachs
Date: 2010-05-25 10:43:30 +0200 (Tue, 25 May 2010)
New Revision: 11492
Modified:
gnunet/src/hostlist/hostlist-client.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
Log:
Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c 2010-05-25 08:33:52 UTC (rev
11491)
+++ gnunet/src/hostlist/hostlist-client.c 2010-05-25 08:43:30 UTC (rev
11492)
@@ -46,6 +46,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
*/
struct Hostlist
@@ -1264,13 +1269,13 @@
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,
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-05-25
08:33:52 UTC (rev 11491)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-05-25
08:43:30 UTC (rev 11492)
@@ -467,7 +467,7 @@
failed = GNUNET_NO;
if (learned_hostlist_downloaded == GNUNET_YES)
- return GNUNET_YES;
+ return GNUNET_NO;
if (timeout == GNUNET_YES)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11492 - gnunet/src/hostlist,
gnunet <=