aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-09-07 11:10:42 +0000
committerNathan S. Evans <evans@in.tum.de>2010-09-07 11:10:42 +0000
commit1b5df4c9ab482ed3f2eeb8f20b061d594bfcd844 (patch)
tree1f274c19e0df5133c6221c3db42c66c5851fd384 /src/dht
parentec95e8e57c154b27727a2af0a53bffda01a6f861 (diff)
downloadgnunet-1b5df4c9ab482ed3f2eeb8f20b061d594bfcd844.tar.gz
gnunet-1b5df4c9ab482ed3f2eeb8f20b061d594bfcd844.zip
fix arguments
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet-dht-driver.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c
index cb8da3863..061ad760f 100644
--- a/src/dht/gnunet-dht-driver.c
+++ b/src/dht/gnunet-dht-driver.c
@@ -303,6 +303,8 @@ static unsigned long long malicious_put_frequency;
303 303
304static unsigned long long settle_time; 304static unsigned long long settle_time;
305 305
306static unsigned long long trial_to_run;
307
306static struct GNUNET_DHTLOG_Handle *dhtlog_handle; 308static struct GNUNET_DHTLOG_Handle *dhtlog_handle;
307 309
308static unsigned long long trialuid; 310static unsigned long long trialuid;
@@ -2093,6 +2095,13 @@ run (void *cls,
2093 else 2095 else
2094 do_find_peer = GNUNET_YES; 2096 do_find_peer = GNUNET_YES;
2095 2097
2098 if (GNUNET_YES != GNUNET_CONFIGURATION_get_value_number (cfg, "DHT_TESTING",
2099 "TRIAL_TO_RUN",
2100 &trial_to_run))
2101 {
2102 trial_to_run = 0;
2103 }
2104
2096 if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_number (cfg, "DHT_TESTING", 2105 if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_number (cfg, "DHT_TESTING",
2097 "FIND_PEER_DELAY", 2106 "FIND_PEER_DELAY",
2098 &temp_config_number)) 2107 &temp_config_number))
@@ -2214,7 +2223,7 @@ run (void *cls,
2214 2223
2215 if ((trialmessage != NULL) && (dhtlog_handle != NULL)) 2224 if ((trialmessage != NULL) && (dhtlog_handle != NULL))
2216 { 2225 {
2217 dhtlog_handle->insert_trial (&trialuid, peers_left, topology, 2226 dhtlog_handle->insert_trial (&trialuid, (unsigned int)trial_to_run, peers_left, topology,
2218 blacklist_topology, connect_topology, 2227 blacklist_topology, connect_topology,
2219 connect_topology_option, 2228 connect_topology_option,
2220 connect_topology_option_modifier, topology_percentage, 2229 connect_topology_option_modifier, topology_percentage,
@@ -2227,7 +2236,7 @@ run (void *cls,
2227 } 2236 }
2228 else if (dhtlog_handle != NULL) 2237 else if (dhtlog_handle != NULL)
2229 { 2238 {
2230 dhtlog_handle->insert_trial (&trialuid, peers_left, topology, 2239 dhtlog_handle->insert_trial (&trialuid, (unsigned int)trial_to_run, peers_left, topology,
2231 blacklist_topology, connect_topology, 2240 blacklist_topology, connect_topology,
2232 connect_topology_option, 2241 connect_topology_option,
2233 connect_topology_option_modifier, topology_percentage, 2242 connect_topology_option_modifier, topology_percentage,
@@ -2286,4 +2295,4 @@ main (int argc, char *argv[])
2286 return ret; 2295 return ret;
2287} 2296}
2288 2297
2289/* end of test_dht_twopeer_put_get.c */ 2298/* end of gnunet-dht-driver.c */