diff options
author | Roger Dingledine <arma@torproject.org> | 2009-04-12 07:56:58 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-04-12 07:56:58 +0000 |
commit | 39ceda7e05d714a157dbd0da11de6ba060cb233a (patch) | |
tree | be2f15e5146cebb0b4557bc800ceed5264c43aa2 /src/or/dirserv.c | |
parent | 115474a44ebd5cdd12eee315a3d6c93301631277 (diff) | |
download | tor-39ceda7e05d714a157dbd0da11de6ba060cb233a.tar.gz tor-39ceda7e05d714a157dbd0da11de6ba060cb233a.zip |
Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
bytes (aka 20KB/s), to match our documentation. Also update
directory authorities so they always assign the Fast flag to relays
with 20KB/s of capacity. Now people running relays won't suddenly
find themselves not seeing any use, if the network gets faster
on average.
svn:r19305
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 42b7b03d6a..9fc30154e3 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1633,7 +1633,7 @@ should_generate_v2_networkstatus(void) #define MTBF_TO_GUARANTEE_STABLE (60*60*24*5) /** Similarly, we protect sufficiently fast nodes from being pushed * out of the set of Fast nodes. */ -#define BANDWIDTH_TO_GUARANTEE_FAST (100*1024) +#define BANDWIDTH_TO_GUARANTEE_FAST ROUTER_REQUIRED_MIN_BANDWIDTH /** Similarly, every node with sufficient bandwidth can be considered * for Guard status. */ #define BANDWIDTH_TO_GUARANTEE_GUARD (250*1024) @@ -1814,7 +1814,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl) /* The 12.5th percentile bandwidth is fast. */ fast_bandwidth = find_nth_uint32(bandwidths, n_active, n_active/8); /* (Now bandwidths is sorted.) */ - if (fast_bandwidth < ROUTER_REQUIRED_MIN_BANDWIDTH) + if (fast_bandwidth < ROUTER_REQUIRED_MIN_BANDWIDTH/2) fast_bandwidth = bandwidths[n_active/4]; guard_bandwidth_including_exits = bandwidths[(n_active-1)/2]; guard_tk = find_nth_long(tks, n_active, n_active/8); |