[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10117: ok, i'm not so good at counting (tor/trunk/src/or)



Author: arma
Date: 2007-05-04 06:39:17 -0400 (Fri, 04 May 2007)
New Revision: 10117

Modified:
   tor/trunk/src/or/config.c
Log:
ok, i'm not so good at counting


Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c	2007-05-04 10:34:47 UTC (rev 10116)
+++ tor/trunk/src/or/config.c	2007-05-04 10:39:17 UTC (rev 10117)
@@ -189,7 +189,7 @@
   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 @@
   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;
   }