Explorar o código

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.
Nick Mathewson %!s(int64=12) %!d(string=hai) anos
pai
achega
265a7ebca6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/dirserv.c

+ 1 - 1
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;
   }