diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-xdht_neighbours.c | 4 | ||||
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c index 51b651670..a956cb028 100644 --- a/src/dht/gnunet-service-xdht_neighbours.c +++ b/src/dht/gnunet-service-xdht_neighbours.c | |||
@@ -2852,8 +2852,8 @@ send_trail_teardown (struct FingerInfo *finger, | |||
2852 | GDS_ROUTING_SRC_TO_DEST); | 2852 | GDS_ROUTING_SRC_TO_DEST); |
2853 | if (NULL == next_hop) | 2853 | if (NULL == next_hop) |
2854 | { | 2854 | { |
2855 | DEBUG(" NO ENTRY FOUND IN %s ROUTING TABLE for trail id %s, line=%d,traillength = %d", | 2855 | // DEBUG(" NO ENTRY FOUND IN %s ROUTING TABLE for trail id %s, line=%d,traillength = %d", |
2856 | GNUNET_i2s(&my_identity), GNUNET_h2s(&trail->trail_id), __LINE__,trail->trail_length); | 2856 | // GNUNET_i2s(&my_identity), GNUNET_h2s(&trail->trail_id), __LINE__,trail->trail_length); |
2857 | return; | 2857 | return; |
2858 | } | 2858 | } |
2859 | GNUNET_assert (0 != GNUNET_CRYPTO_cmp_peer_identity (&finger->finger_identity, | 2859 | GNUNET_assert (0 != GNUNET_CRYPTO_cmp_peer_identity (&finger->finger_identity, |
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index fbf20f028..50c55207e 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c | |||
@@ -182,6 +182,16 @@ static struct ActiveContext *a_ac; | |||
182 | static struct GNUNET_TIME_Relative delay; | 182 | static struct GNUNET_TIME_Relative delay; |
183 | 183 | ||
184 | /** | 184 | /** |
185 | * The delay to start puts. | ||
186 | */ | ||
187 | static struct GNUNET_TIME_Relative delay_put; | ||
188 | |||
189 | /** | ||
190 | * The delay to start puts. | ||
191 | */ | ||
192 | static struct GNUNET_TIME_Relative delay_get; | ||
193 | |||
194 | /** | ||
185 | * The timeout for GET and PUT | 195 | * The timeout for GET and PUT |
186 | */ | 196 | */ |
187 | static struct GNUNET_TIME_Relative timeout; | 197 | static struct GNUNET_TIME_Relative timeout; |
@@ -790,7 +800,6 @@ hashmap_iterate_remove(void *cls, | |||
790 | const struct GNUNET_HashCode *key, | 800 | const struct GNUNET_HashCode *key, |
791 | void *value) | 801 | void *value) |
792 | { | 802 | { |
793 | struct GNUNET_HashCode *remove_key = key; | ||
794 | GNUNET_assert(GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(successor_peer_hashmap, key, value)); | 803 | GNUNET_assert(GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(successor_peer_hashmap, key, value)); |
795 | return GNUNET_YES; | 804 | return GNUNET_YES; |
796 | } | 805 | } |
@@ -1193,6 +1202,8 @@ main (int argc, char *const *argv) | |||
1193 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | 1202 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |
1194 | return 2; | 1203 | return 2; |
1195 | delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20); /* default delay */ | 1204 | delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20); /* default delay */ |
1205 | delay_put = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1); /* default delay */ | ||
1206 | delay_get = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5); /* default delay */ | ||
1196 | timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1); /* default timeout */ | 1207 | timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1); /* default timeout */ |
1197 | replication = 1; /* default replication */ | 1208 | replication = 1; /* default replication */ |
1198 | rc = 0; | 1209 | rc = 0; |