aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-14 08:38:34 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-14 08:38:34 +0000
commitcc1b82ade8940380e3a6779759d6c4f74dfb26c8 (patch)
tree93abb264f3c75fe787f3856617fdcf4ae0ae1a01 /src/or
parent486dc7007bf6bcdf901db3c5a8735fea31905ca5 (diff)
downloadtor-cc1b82ade8940380e3a6779759d6c4f74dfb26c8.tar
tor-cc1b82ade8940380e3a6779759d6c4f74dfb26c8.tar.gz
when listing min-bandwidth servers in the controller, don't get
fooled by a low bandwidthrate svn:r4777
Diffstat (limited to 'src/or')
-rw-r--r--src/or/dirserv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index a237fbf09..1344bc08c 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -463,7 +463,9 @@ dirserver_getinfo_unregistered(const char *question)
for (i = 0; i < smartlist_len(descriptor_list); ++i) {
ent = smartlist_get(descriptor_list, i);
r = dirserv_router_fingerprint_is_known(ent);
- if (ent->bandwidthcapacity >= min_bw && r == 0) {
+ if (ent->bandwidthcapacity >= min_bw &&
+ ent->bandwidthrate >= min_bw &&
+ r == 0) {
/* then log this one */
tor_snprintf(buf, sizeof(buf),
"%s: BW %d on '%s'.",