gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12882 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r12882 - gnunet/src/dht
Date: Tue, 7 Sep 2010 13:10:42 +0200

Author: nevans
Date: 2010-09-07 13:10:42 +0200 (Tue, 07 Sep 2010)
New Revision: 12882

Modified:
   gnunet/src/dht/gnunet-dht-driver.c
Log:
fix arguments

Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c  2010-09-07 10:35:54 UTC (rev 12881)
+++ gnunet/src/dht/gnunet-dht-driver.c  2010-09-07 11:10:42 UTC (rev 12882)
@@ -303,6 +303,8 @@
 
 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;
@@ -2093,6 +2095,13 @@
   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))
@@ -2214,7 +2223,7 @@
 
   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,
@@ -2227,7 +2236,7 @@
     }
   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,
@@ -2286,4 +2295,4 @@
   return ret;
 }
 
-/* end of test_dht_twopeer_put_get.c */
+/* end of gnunet-dht-driver.c */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]