mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
if the bottom eighth of the servers by bandwidth is really crummy,
try the bottom quartile instead. svn:r6387
This commit is contained in:
parent
3791d3daaa
commit
0cee3e1fc7
@ -1257,6 +1257,9 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
|
||||
if (smartlist_len(bandwidths)) {
|
||||
fast_bandwidth = *(uint32_t*)smartlist_get(bandwidths,
|
||||
smartlist_len(bandwidths)/8);
|
||||
if (fast_bandwidth < ROUTER_REQUIRED_MIN_BANDWIDTH)
|
||||
fast_bandwidth = *(uint32_t*)smartlist_get(bandwidths,
|
||||
smartlist_len(bandwidths)/4);
|
||||
guard_bandwidth = *(uint32_t*)smartlist_get(bandwidths,
|
||||
smartlist_len(bandwidths)/2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user