diff options
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 16955629c..3041cccfe 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors) | 3 | (C) 2009-2013 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -602,10 +602,10 @@ send_find_peer_message (void *cls, | |||
602 | GNUNET_CONTAINER_bloomfilter_free (peer_bf); | 602 | GNUNET_CONTAINER_bloomfilter_free (peer_bf); |
603 | GNUNET_CONTAINER_bloomfilter_free (bcc.bloom); | 603 | GNUNET_CONTAINER_bloomfilter_free (bcc.bloom); |
604 | /* schedule next round */ | 604 | /* schedule next round */ |
605 | next_send_time.rel_value = | 605 | next_send_time.rel_value_us = |
606 | DHT_MINIMUM_FIND_PEER_INTERVAL.rel_value + | 606 | DHT_MINIMUM_FIND_PEER_INTERVAL.rel_value_us + |
607 | GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, | 607 | GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, |
608 | DHT_MAXIMUM_FIND_PEER_INTERVAL.rel_value / | 608 | DHT_MAXIMUM_FIND_PEER_INTERVAL.rel_value_us / |
609 | (newly_found_peers + 1)); | 609 | (newly_found_peers + 1)); |
610 | newly_found_peers = 0; | 610 | newly_found_peers = 0; |
611 | find_peer_task = | 611 | find_peer_task = |
@@ -757,7 +757,7 @@ core_transmit_notify (void *cls, size_t size, void *buf) | |||
757 | 757 | ||
758 | peer->th = NULL; | 758 | peer->th = NULL; |
759 | while ((NULL != (pending = peer->head)) && | 759 | while ((NULL != (pending = peer->head)) && |
760 | (GNUNET_TIME_absolute_get_remaining (pending->timeout).rel_value == 0)) | 760 | (0 == GNUNET_TIME_absolute_get_remaining (pending->timeout).rel_value_us)) |
761 | { | 761 | { |
762 | peer->pending_count--; | 762 | peer->pending_count--; |
763 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, pending); | 763 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, pending); |