gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8924 - GNUnet/src/applications/testing


From: gnunet
Subject: [GNUnet-SVN] r8924 - GNUnet/src/applications/testing
Date: Tue, 1 Sep 2009 14:51:28 -0600

Author: nevans
Date: 2009-09-01 14:51:28 -0600 (Tue, 01 Sep 2009)
New Revision: 8924

Modified:
   GNUnet/src/applications/testing/remote.c
Log:
default value fix

Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c    2009-09-01 20:48:32 UTC (rev 
8923)
+++ GNUnet/src/applications/testing/remote.c    2009-09-01 20:51:28 UTC (rev 
8924)
@@ -414,12 +414,19 @@
                                             "PERCENTAGE", "1.0",
                                             &percentage_string);
   percentage = atof (percentage_string);
+  if (strcmp(percentage_string, "") != 0)
+    percentage = atof (percentage_string);
+  else
+    percentage = 1.0;
 
   GNUNET_GC_get_configuration_value_string (newcfg, "MULTIPLE_SERVER_TESTING",
                                             "LOGNMODIFIER", "1.0",
                                             &logNModifier_string);
 
-  logNModifier = atof (logNModifier_string);
+  if (strcmp(logNModifier_string, "") != 0)
+    logNModifier = atof (logNModifier_string);
+  else
+    logNModifier = 1.0;
 
   GNUNET_GC_get_configuration_value_string (newcfg, "MULTIPLE_SERVER_TESTING",
                                             "CONTROL_HOST", "localhost",





reply via email to

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