aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-15 07:15:23 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-15 07:15:23 +0000
commit0cee3e1fc7111d6a03247c227afd2099a6fddf95 (patch)
treeecaa688d6e50107110456476126a7ef6961792c4 /src/or/dirserv.c
parent3791d3daaa5a65ba5d787d46fd4483c1ea4be8f4 (diff)
downloadtor-0cee3e1fc7111d6a03247c227afd2099a6fddf95.tar
tor-0cee3e1fc7111d6a03247c227afd2099a6fddf95.tar.gz
if the bottom eighth of the servers by bandwidth is really crummy,
try the bottom quartile instead. svn:r6387
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index c80f42638..8a8a42a14 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -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);
}