aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-09-20 11:23:43 +0000
committerNathan S. Evans <evans@in.tum.de>2010-09-20 11:23:43 +0000
commit12cb27ceaa50eae46891775ee207fc95a8a47aca (patch)
treef2e912850932b58149833e55c5193a1334f79dab /src
parentf45664b8a9d376ede22d2e9ee63e7eaf59e8604f (diff)
downloadgnunet-12cb27ceaa50eae46891775ee207fc95a8a47aca.tar.gz
gnunet-12cb27ceaa50eae46891775ee207fc95a8a47aca.zip
insert new round on first round
Diffstat (limited to 'src')
-rw-r--r--src/dht/gnunet-dht-driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c
index 822e02184..73d7e039d 100644
--- a/src/dht/gnunet-dht-driver.c
+++ b/src/dht/gnunet-dht-driver.c
@@ -1503,7 +1503,7 @@ churn_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
1503 } 1503 }
1504 //timeout = GNUNET_TIME_relative_multiply(seconds_per_peer_start, churn_up > 0 ? churn_up : churn_down); 1504 //timeout = GNUNET_TIME_relative_multiply(seconds_per_peer_start, churn_up > 0 ? churn_up : churn_down);
1505 //timeout = GNUNET_TIME_relative_multiply (seconds_per_peer_start, churn_up > 0 ? churn_up : churn_down); 1505 //timeout = GNUNET_TIME_relative_multiply (seconds_per_peer_start, churn_up > 0 ? churn_up : churn_down);
1506 timeout = DEFAULT_TIMEOUT; /* FIXME: Lack of intelligent choice here */ 1506 timeout = GNUNET_TIME_relative_multiply(DEFAULT_TIMEOUT, 2); /* FIXME: Lack of intelligent choice here */
1507 find_peer_context = NULL; 1507 find_peer_context = NULL;
1508 if (churn_up > 0) /* Only need to do find peer requests if we turned new peers on */ 1508 if (churn_up > 0) /* Only need to do find peer requests if we turned new peers on */
1509 { 1509 {
@@ -2039,6 +2039,8 @@ setup_puts_and_gets (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
2039 die_task = GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, num_puts * 2), 2039 die_task = GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, num_puts * 2),
2040 &end_badly, "from do puts"); 2040 &end_badly, "from do puts");
2041 GNUNET_SCHEDULER_add_now (sched, &do_put, all_puts); 2041 GNUNET_SCHEDULER_add_now (sched, &do_put, all_puts);
2042 if (dhtlog_handle != NULL)
2043 dhtlog_handle->insert_round(DHT_ROUND_NORMAL, rounds_finished);
2042} 2044}
2043 2045
2044/** 2046/**