From: Nathan S. Evans Date: Thu, 11 Nov 2010 11:53:23 +0000 (+0000) Subject: read put and get replication from config when testing X-Git-Tag: initial-import-from-subversion-38251~19766 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9b48101b9950ff0c1b254b90acdc11531f9697f2;p=oweals%2Fgnunet.git read put and get replication from config when testing --- 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 @@ -2790,11 +2790,21 @@ run (void *cls, &num_puts)) 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))