[or-cvs] if the bottom eighth of the servers by bandwidth is really ...
arma at seul.org
arma at seul.org
Sat Apr 15 07:15:26 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
dirserv.c
Log Message:
if the bottom eighth of the servers by bandwidth is really crummy,
try the bottom quartile instead.
Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.328
retrieving revision 1.329
diff -u -p -d -r1.328 -r1.329
--- dirserv.c 10 Apr 2006 01:35:56 -0000 1.328
+++ dirserv.c 15 Apr 2006 07:15:23 -0000 1.329
@@ -1257,6 +1257,9 @@ dirserv_compute_performance_thresholds(r
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);
}
More information about the tor-commits
mailing list