From 265a7ebca6128ef5002d70e9b52b67800e4ed77b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 11 Apr 2013 10:26:31 -0400 Subject: [PATCH] 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. --- src/or/dirserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }