From: Nick Mathewson Date: Thu, 11 Apr 2013 14:26:31 +0000 (-0400) Subject: Use credible_bandwidth uniformly in setting/using fast_bandwidth X-Git-Tag: tor-0.2.4.12-alpha~4^2^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=265a7ebca6128ef5002d70e9b52b67800e4ed77b;p=thirdparty%2Ftor.git Use credible_bandwidth uniformly in setting/using fast_bandwidth We were using credible_bandwidth to build the fast_bandwidth threshold, but comparing it to bandwidth_for_router. --- diff --git a/src/or/dirserv.c b/src/or/dirserv.c index ed19406bae..11a24235cf 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1830,7 +1830,7 @@ dirserv_thinks_router_is_unreliable(time_t now, } } if (need_capacity) { - uint32_t bw = dirserv_get_bandwidth_for_router(router); + uint32_t bw = dirserv_get_credible_bandwidth(router); if (bw < fast_bandwidth) return 1; }