diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-11-11 11:53:23 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-11-11 11:53:23 +0000 |
commit | 9b48101b9950ff0c1b254b90acdc11531f9697f2 (patch) | |
tree | 9d34cdf5e83dc683b2f3e0bbd8814fdbcd88937e | |
parent | b10265d51e649ec3e9914c35dbb2fab31e1c7900 (diff) | |
download | gnunet-9b48101b9950ff0c1b254b90acdc11531f9697f2.tar.gz gnunet-9b48101b9950ff0c1b254b90acdc11531f9697f2.zip |
read put and get replication from config when testing
-rw-r--r-- | src/dht/gnunet-dht-driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index 87836c3f5..0d72caf3b 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c | |||
@@ -2791,10 +2791,20 @@ run (void *cls, | |||
2791 | num_puts = num_peers; | 2791 | num_puts = num_peers; |
2792 | 2792 | ||
2793 | if (GNUNET_SYSERR == | 2793 | if (GNUNET_SYSERR == |
2794 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "put_replication", | ||
2795 | &put_replication)) | ||
2796 | put_replication = DEFAULT_PUT_REPLICATION; | ||
2797 | |||
2798 | if (GNUNET_SYSERR == | ||
2794 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "num_gets", | 2799 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "num_gets", |
2795 | &num_gets)) | 2800 | &num_gets)) |
2796 | num_gets = num_peers; | 2801 | num_gets = num_peers; |
2797 | 2802 | ||
2803 | if (GNUNET_SYSERR == | ||
2804 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "get_replication", | ||
2805 | &get_replication)) | ||
2806 | get_replication = DEFAULT_GET_REPLICATION; | ||
2807 | |||
2798 | if (GNUNET_OK == | 2808 | if (GNUNET_OK == |
2799 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "find_peer_delay", | 2809 | GNUNET_CONFIGURATION_get_value_number (cfg, "dht_testing", "find_peer_delay", |
2800 | &temp_config_number)) | 2810 | &temp_config_number)) |