Commit cc1b82ad authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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

fooled by a low bandwidthrate


svn:r4777
parent 486dc700
Loading
Loading
Loading
Loading
+3 −1
Changes for src/or/dirserv.c: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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'.",