diff options
author | Roger Dingledine <arma@torproject.org> | 2007-05-04 10:39:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-05-04 10:39:17 +0000 |
commit | 10efbed2f5d865bcce1d5e3830d99266351263cf (patch) | |
tree | 5b4620d5a45a70fba51a863a5a1af4612d6d6613 | |
parent | 0ce53ca8171f8be57354951b6e92a4feea300729 (diff) | |
download | tor-10efbed2f5d865bcce1d5e3830d99266351263cf.tar.gz tor-10efbed2f5d865bcce1d5e3830d99266351263cf.zip |
ok, i'm not so good at counting
svn:r10117
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index 854ffd916f..a218b85c87 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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; } |