[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 265a7ebca6128ef5002d70e9b52b67800e4ed77b
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;
   }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits