when we're counting how many descriptors to not download, be a

little bit more accurate


svn:r13173
This commit is contained in:
Roger Dingledine 2008-01-18 04:47:03 +00:00
parent 06047bcec9
commit 4682e5f924

View File

@ -3821,6 +3821,10 @@ update_consensus_router_descriptor_downloads(time_t now)
}
continue; /* We have it already. */
}
if (digestmap_get(map, rs->descriptor_digest)) {
++n_inprogress;
continue; /* We have an in-progress download. */
}
if (!download_status_is_ready(&rs->dl_status, now,
MAX_ROUTERDESC_DOWNLOAD_FAILURES)) {
++n_delayed; /* Not ready for retry. */
@ -3835,10 +3839,6 @@ update_consensus_router_descriptor_downloads(time_t now)
++n_wouldnt_use;
continue; /* We would never use it ourself. */
}
if (digestmap_get(map, rs->descriptor_digest)) {
++n_inprogress;
continue; /* We have an in-progress download. */
}
smartlist_add(downloadable, rs->descriptor_digest);
});