static unsigned long long settle_time;
+static unsigned long long trial_to_run;
+
static struct GNUNET_DHTLOG_Handle *dhtlog_handle;
static unsigned long long trialuid;
else
do_find_peer = GNUNET_YES;
+ if (GNUNET_YES != GNUNET_CONFIGURATION_get_value_number (cfg, "DHT_TESTING",
+ "TRIAL_TO_RUN",
+ &trial_to_run))
+ {
+ trial_to_run = 0;
+ }
+
if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_number (cfg, "DHT_TESTING",
"FIND_PEER_DELAY",
&temp_config_number))
if ((trialmessage != NULL) && (dhtlog_handle != NULL))
{
- dhtlog_handle->insert_trial (&trialuid, peers_left, topology,
+ dhtlog_handle->insert_trial (&trialuid, (unsigned int)trial_to_run, peers_left, topology,
blacklist_topology, connect_topology,
connect_topology_option,
connect_topology_option_modifier, topology_percentage,
}
else if (dhtlog_handle != NULL)
{
- dhtlog_handle->insert_trial (&trialuid, peers_left, topology,
+ dhtlog_handle->insert_trial (&trialuid, (unsigned int)trial_to_run, peers_left, topology,
blacklist_topology, connect_topology,
connect_topology_option,
connect_topology_option_modifier, topology_percentage,
return ret;
}
-/* end of test_dht_twopeer_put_get.c */
+/* end of gnunet-dht-driver.c */