summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-01-18 04:47:03 +0000
committerRoger Dingledine <arma@torproject.org>2008-01-18 04:47:03 +0000
commit4682e5f9246bee6ec26e95e0f12549f1ee0520f7 (patch)
treecff8112207286ed449e1ca79ad5cbda560d002c2 /src
parent06047bcec9bab8ec2af9dcdd0b3277d36680f9d8 (diff)
downloadtor-4682e5f9246bee6ec26e95e0f12549f1ee0520f7.tar.gz
tor-4682e5f9246bee6ec26e95e0f12549f1ee0520f7.zip
when we're counting how many descriptors to not download, be a
little bit more accurate svn:r13173
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7097cb64dd..5aa934ae64 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -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);
});