gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8945 - GNUnet/src/applications/dv_dht/tools


From: gnunet
Subject: [GNUnet-SVN] r8945 - GNUnet/src/applications/dv_dht/tools
Date: Fri, 4 Sep 2009 16:36:41 -0600

Author: nevans
Date: 2009-09-04 16:36:41 -0600 (Fri, 04 Sep 2009)
New Revision: 8945

Modified:
   GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
Log:
configuration addition related change

Modified: GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
===================================================================
--- GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c        2009-09-04 
22:34:51 UTC (rev 8944)
+++ GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c        2009-09-04 
22:36:41 UTC (rev 8945)
@@ -64,6 +64,7 @@
 static unsigned long long malicious_droppers;
 static unsigned long long totalBytesDropped;
 static unsigned long long totalMessagesDropped;
+static unsigned long long maxnetbps;
 
 static int randomized_gets;
 static int max_threads;
@@ -235,7 +236,7 @@
                                   get_requests, concurrent_requests,
                                   settle_time, num_rounds, malicious_getters,
                                   malicious_putters, malicious_droppers,
-                                  trialmessage);
+                                  maxnetbps, trialmessage);
         }
       else
         {
@@ -244,7 +245,8 @@
                                   topology_modifier, logNModifier, put_items,
                                   get_requests, concurrent_requests,
                                   settle_time, num_rounds, malicious_getters,
-                                  malicious_putters, malicious_droppers, "");
+                                  malicious_putters, malicious_droppers,
+                                  maxnetbps, "");
         }
     }
   if (ret != GNUNET_OK)
@@ -598,6 +600,10 @@
   if (malicious_droppers > 0)
     malicious_dropper_num = num_peers / malicious_droppers;
 
+  GNUNET_GC_get_configuration_value_number (cfg, "MULTIPLE_SERVER_TESTING",
+                                            "MAXNETBPS", 0,
+                                            -1, 0, &maxnetbps);
+
   while (max_threads % concurrent_requests != 0)
     {
       max_threads++;





reply via email to

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