diff options
Diffstat (limited to 'src/dht/gnunet_dht_profiler.c')
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 13 |
1 files changed, 12 insertions, 1 deletions
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; |