]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ok, i'm not so good at counting
authorRoger Dingledine <arma@torproject.org>
Fri, 4 May 2007 10:39:17 +0000 (10:39 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 4 May 2007 10:39:17 +0000 (10:39 +0000)
svn:r10117

src/or/config.c

index 854ffd916ffb30cfcf4c08caae47b739f70d7276..a218b85c87b9715317c6bac66081c7b587266907 100644 (file)
@@ -189,7 +189,7 @@ static config_var_t _option_vars[] = {
   VAR("LongLivedPorts",      CSV,      LongLivedPorts,
                          "21,22,706,1863,5050,5190,5222,5223,6667,6697,8300"),
   VAR("MapAddress",          LINELIST, AddressMap,           NULL),
-  VAR("MaxAdvertisedBandwidth",MEMUNIT,MaxAdvertisedBandwidth,"2 GB"),
+  VAR("MaxAdvertisedBandwidth",MEMUNIT,MaxAdvertisedBandwidth,"1 GB"),
   VAR("MaxCircuitDirtiness", INTERVAL, MaxCircuitDirtiness,  "10 minutes"),
   VAR("MaxOnionsPending",    UINT,     MaxOnionsPending,     "100"),
   OBSOLETE("MonthlyAccountingStart"),
@@ -2285,8 +2285,8 @@ ensure_bandwidth_cap(uint64_t value, const char *desc, char **msg)
   int r;
   char buf[1024];
   if (value > ROUTER_MAX_DECLARED_BANDWIDTH) {
-    r = tor_snprintf(buf, sizeof(buf), "%s must be at most %d",
-                     desc, ROUTER_MAX_DECLARED_BANDWIDTH);
+    r = tor_snprintf(buf, sizeof(buf), "%s ("U64_FORMAT") must be at most %d",
+                     desc, value, ROUTER_MAX_DECLARED_BANDWIDTH);
     *msg = tor_strdup(r >= 0 ? buf : "internal error");
     return -1;
   }