aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-04-11 10:26:31 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-11 10:36:46 -0400
commit265a7ebca6128ef5002d70e9b52b67800e4ed77b (patch)
treec6a21b65b42b9b3dc551af4619e798c852c301c5
parentec4ee3197fb0891a094a5fc4860c0b94eefee3c7 (diff)
downloadtor-265a7ebca6128ef5002d70e9b52b67800e4ed77b.tar
tor-265a7ebca6128ef5002d70e9b52b67800e4ed77b.tar.gz
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.
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index ed19406ba..11a24235c 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;
}