diff options
-rw-r--r-- | src/dht/gnunet-dht-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index 7f2447c13..47493c256 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c | |||
@@ -2014,8 +2014,8 @@ schedule_find_peer_requests (void *cls, const struct GNUNET_SCHEDULER_TaskContex | |||
2014 | if (find_peer_ctx->total > max_outstanding_find_peers) | 2014 | if (find_peer_ctx->total > max_outstanding_find_peers) |
2015 | find_peer_ctx->total = max_outstanding_find_peers; | 2015 | find_peer_ctx->total = max_outstanding_find_peers; |
2016 | 2016 | ||
2017 | if (find_peer_ctx->total > GNUNET_CONTAINER_heap_get_size(find_peer_ctx->peer_min_heap)) /* Don't try to send more messages than we have peers! */ | 2017 | if (find_peer_ctx->total > num_peers) /* Don't try to send more messages than we have peers! */ |
2018 | find_peer_ctx->total = GNUNET_CONTAINER_heap_get_size(find_peer_ctx->peer_min_heap); | 2018 | find_peer_ctx->total = num_peers; |
2019 | 2019 | ||
2020 | find_peer_ctx->last_sent = find_peer_ctx->total; | 2020 | find_peer_ctx->last_sent = find_peer_ctx->total; |
2021 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Sending %u find peer messages (goal at least %u connections)\n", find_peer_ctx->total, connection_estimate(num_peers, DEFAULT_BUCKET_SIZE)); | 2021 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Sending %u find peer messages (goal at least %u connections)\n", find_peer_ctx->total, connection_estimate(num_peers, DEFAULT_BUCKET_SIZE)); |