[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34193 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34193 - gnunet/src/dht |
Date: |
Fri, 22 Aug 2014 00:54:01 +0200 |
Author: supriti
Date: 2014-08-22 00:54:01 +0200 (Fri, 22 Aug 2014)
New Revision: 34193
Modified:
gnunet/src/dht/gnunet-service-xdht_neighbours.c
gnunet/src/dht/gnunet_dht_profiler.c
Log:
Fixing Warning, Creating new delays for puts and gets
Modified: gnunet/src/dht/gnunet-service-xdht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-xdht_neighbours.c 2014-08-21 22:45:13 UTC
(rev 34192)
+++ gnunet/src/dht/gnunet-service-xdht_neighbours.c 2014-08-21 22:54:01 UTC
(rev 34193)
@@ -2852,8 +2852,8 @@
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,
Modified: gnunet/src/dht/gnunet_dht_profiler.c
===================================================================
--- gnunet/src/dht/gnunet_dht_profiler.c 2014-08-21 22:45:13 UTC (rev
34192)
+++ gnunet/src/dht/gnunet_dht_profiler.c 2014-08-21 22:54:01 UTC (rev
34193)
@@ -182,6 +182,16 @@
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 @@
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 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34193 - gnunet/src/dht,
gnunet <=