fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 18 Nov 2011 10:08:28 +0000 (10:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 18 Nov 2011 10:08:28 +0000 (10:08 +0000)
src/ats/ats_api.c
src/core/test_core_quota_compliance.c
src/fs/gnunet-service-fs_pr.c

index e25f9a8ec006792a4f7fae9270368bbb134e4760..8ebc240e1bf94689051a3ee949400c8d3d1aefe8 100644 (file)
@@ -341,10 +341,10 @@ GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
   atc->alloc_cb_cls = alloc_cb_cls;
   atc->peers = GNUNET_CONTAINER_multihashmap_create (256);
   atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256);
-  GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT",
+  GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_OUT",
                                          &atc->total_bps_out);
-  GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_IN",
-                                         &atc->total_bps_in);
+  GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_IN",
+                                      &atc->total_bps_in);
   return atc;
 }
 
index 856ed13fd304cf601c4a92a8aab080f0b4adb352..dd8f16a2ce558c9923fd2fc4e2f1d3da5b9b7640 100644 (file)
@@ -629,21 +629,21 @@ run (void *cls, char *const *args, const char *cfgfile,
 
   GNUNET_assert (test != -1);
   GNUNET_assert (GNUNET_SYSERR !=
-                 GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE",
-                                                        "TOTAL_QUOTA_IN",
-                                                        &current_quota_p1_in));
+                 GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE",
+                                                     "TOTAL_QUOTA_IN",
+                                                     &current_quota_p1_in));
   GNUNET_assert (GNUNET_SYSERR !=
-                 GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE",
-                                                        "TOTAL_QUOTA_IN",
-                                                        &current_quota_p2_in));
+                 GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE",
+                                                     "TOTAL_QUOTA_IN",
+                                                     &current_quota_p2_in));
   GNUNET_assert (GNUNET_SYSERR !=
-                 GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE",
-                                                        "TOTAL_QUOTA_OUT",
-                                                        &current_quota_p1_out));
+                 GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE",
+                                                     "TOTAL_QUOTA_OUT",
+                                                     &current_quota_p1_out));
   GNUNET_assert (GNUNET_SYSERR !=
-                 GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE",
-                                                        "TOTAL_QUOTA_OUT",
-                                                        &current_quota_p2_out));
+                 GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE",
+                                                     "TOTAL_QUOTA_OUT",
+                                                     &current_quota_p2_out));
 
   p1.ch =
       GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify,
index 3b43b4c5f4521ef7239a4b6cde2d11e0ed40fd7c..d382e1f935a70057168c81f98eacce18663ebf0a 100644 (file)
@@ -1587,8 +1587,8 @@ GSF_pending_request_init_ ()
                 "MAX_PENDING_REQUESTS");
   }
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_number (GSF_cfg, "core", "TOTAL_QUOTA_OUT",
-                                             &bps))
+      GNUNET_CONFIGURATION_get_value_size (GSF_cfg, "core", "TOTAL_QUOTA_OUT",
+                                          &bps))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 _