From 0cee3e1fc7111d6a03247c227afd2099a6fddf95 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 15 Apr 2006 07:15:23 +0000 Subject: [PATCH] if the bottom eighth of the servers by bandwidth is really crummy, try the bottom quartile instead. svn:r6387 --- src/or/dirserv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index c80f426381..8a8a42a149 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); }