summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSupriti Singh <supritisingh08@gmail.com>2014-08-21 22:54:01 +0000
committerSupriti Singh <supritisingh08@gmail.com>2014-08-21 22:54:01 +0000
commitaacbab5ed7911a46be8cb2df2d3ff29851efedac (patch)
treea11db60c282e6835e60c26d702142cca4a32adca /src
parentdfdf4604dbc772f414cf0776f247e639f3f132bc (diff)
Fixing Warning, Creating new delays for puts and gets
Diffstat (limited to 'src')
-rw-r--r--src/dht/gnunet-service-xdht_neighbours.c4
-rw-r--r--src/dht/gnunet_dht_profiler.c13
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,
GDS_ROUTING_SRC_TO_DEST);
if (NULL == next_hop)
{
- DEBUG(" NO ENTRY FOUND IN %s ROUTING TABLE for trail id %s, line=%d,traillength = %d",
- GNUNET_i2s(&my_identity), GNUNET_h2s(&trail->trail_id), __LINE__,trail->trail_length);
+// DEBUG(" NO ENTRY FOUND IN %s ROUTING TABLE for trail id %s, line=%d,traillength = %d",
+// GNUNET_i2s(&my_identity), GNUNET_h2s(&trail->trail_id), __LINE__,trail->trail_length);
return;
}
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;
static struct GNUNET_TIME_Relative delay;
/**
+ * The delay to start puts.
+ */
+static struct GNUNET_TIME_Relative delay_put;
+
+/**
+ * The delay to start puts.
+ */
+static struct GNUNET_TIME_Relative delay_get;
+
+/**
* The timeout for GET and PUT
*/
static struct GNUNET_TIME_Relative timeout;
@@ -790,7 +800,6 @@ hashmap_iterate_remove(void *cls,
const struct GNUNET_HashCode *key,
void *value)
{
- struct GNUNET_HashCode *remove_key = key;
GNUNET_assert(GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(successor_peer_hashmap, key, value));
return GNUNET_YES;
}
@@ -1193,6 +1202,8 @@ main (int argc, char *const *argv)
if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
return 2;
delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20); /* default delay */
+ delay_put = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1); /* default delay */
+ delay_get = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5); /* default delay */
timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1); /* default timeout */
replication = 1; /* default replication */
rc = 0;