when listing min-bandwidth servers in the controller, don't get

fooled by a low bandwidthrate


svn:r4777
This commit is contained in:
Roger Dingledine 2005-08-14 08:38:34 +00:00
parent 486dc7007b
commit cc1b82ade8

View File

@ -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'.",