From cc1b82ade8940380e3a6779759d6c4f74dfb26c8 Mon Sep 17 00:00:00 2001 From: Roger Dingledine <arma@torproject.org> Date: Sun, 14 Aug 2005 08:38:34 +0000 Subject: when listing min-bandwidth servers in the controller, don't get fooled by a low bandwidthrate svn:r4777 --- src/or/dirserv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or') 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'.", -- cgit v1.2.3