mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
when we're counting how many descriptors to not download, be a
little bit more accurate svn:r13173
This commit is contained in:
parent
06047bcec9
commit
4682e5f924
@ -3821,6 +3821,10 @@ update_consensus_router_descriptor_downloads(time_t now)
|
|||||||
}
|
}
|
||||||
continue; /* We have it already. */
|
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,
|
if (!download_status_is_ready(&rs->dl_status, now,
|
||||||
MAX_ROUTERDESC_DOWNLOAD_FAILURES)) {
|
MAX_ROUTERDESC_DOWNLOAD_FAILURES)) {
|
||||||
++n_delayed; /* Not ready for retry. */
|
++n_delayed; /* Not ready for retry. */
|
||||||
@ -3835,10 +3839,6 @@ update_consensus_router_descriptor_downloads(time_t now)
|
|||||||
++n_wouldnt_use;
|
++n_wouldnt_use;
|
||||||
continue; /* We would never use it ourself. */
|
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);
|
smartlist_add(downloadable, rs->descriptor_digest);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user