[tor-commits] [tor/release-0.2.4] Use credible_bandwidth uniformly in setting/using fast_bandwidth

arma at torproject.org arma at torproject.org
Thu Apr 18 05:17:53 UTC 2013


commit 265a7ebca6128ef5002d70e9b52b67800e4ed77b
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Apr 11 10:26:31 2013 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index ed19406..11a2423 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;
   }





More information about the tor-commits mailing list