mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
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.
This commit is contained in:
parent
ec4ee3197f
commit
265a7ebca6
1 changed files with 1 additions and 1 deletions
|
@ -1830,7 +1830,7 @@ dirserv_thinks_router_is_unreliable(time_t now,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (need_capacity) {
|
if (need_capacity) {
|
||||||
uint32_t bw = dirserv_get_bandwidth_for_router(router);
|
uint32_t bw = dirserv_get_credible_bandwidth(router);
|
||||||
if (bw < fast_bandwidth)
|
if (bw < fast_bandwidth)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue