Browse Source

when listing min-bandwidth servers in the controller, don't get
fooled by a low bandwidthrate


svn:r4777

Roger Dingledine 19 years ago
parent
commit
cc1b82ade8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/or/dirserv.c

+ 3 - 1
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'.",