]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use credible_bandwidth uniformly in setting/using fast_bandwidth
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Apr 2013 14:26:31 +0000 (10:26 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Apr 2013 14:36:46 +0000 (10:36 -0400)
We were using credible_bandwidth to build the fast_bandwidth
threshold, but comparing it to bandwidth_for_router.

src/or/dirserv.c

index ed19406bae5aba3c770a06afffd4ed24c903b895..11a24235cf43fddc23a36a50e6e34ff9075a37f1 100644 (file)
@@ -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;
   }