[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13646 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13646 - gnunet/src/dht |
Date: |
Thu, 11 Nov 2010 12:53:23 +0100 |
Author: nevans
Date: 2010-11-11 12:53:23 +0100 (Thu, 11 Nov 2010)
New Revision: 13646
Modified:
gnunet/src/dht/gnunet-dht-driver.c
Log:
read put and get replication from config when testing
Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c 2010-11-11 11:25:04 UTC (rev 13645)
+++ gnunet/src/dht/gnunet-dht-driver.c 2010-11-11 11:53:23 UTC (rev 13646)
@@ -2791,10 +2791,20 @@
num_puts = num_peers;
if (GNUNET_SYSERR ==
+ GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing",
"put_replication",
+ &put_replication))
+ put_replication = DEFAULT_PUT_REPLICATION;
+
+ if (GNUNET_SYSERR ==
GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "num_gets",
&num_gets))
num_gets = num_peers;
+ if (GNUNET_SYSERR ==
+ GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing",
"get_replication",
+ &get_replication))
+ get_replication = DEFAULT_GET_REPLICATION;
+
if (GNUNET_OK ==
GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing",
"find_peer_delay",
&temp_config_number))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13646 - gnunet/src/dht,
gnunet <=