diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-05 03:42:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-05 03:42:04 +0000 |
commit | d602d0d29831d7ff24d90e8e7b2d15398a417e88 (patch) | |
tree | 8ae47e565650e0302f1a8e6e5180187ed35cfa84 | |
parent | 640882c76c987da7fee4513436c07265a2f3f0a9 (diff) | |
download | tor-d602d0d29831d7ff24d90e8e7b2d15398a417e88.tar.gz tor-d602d0d29831d7ff24d90e8e7b2d15398a417e88.zip |
cosmetic fix
svn:r5915
-rw-r--r-- | src/or/routerlist.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 2f177a4c65..e787ce8dd1 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3187,7 +3187,7 @@ list_pending_descriptor_downloads(digestmap_t *result) smartlist_free(tmp); } -/** Launch downloads for the all the descriptors whose digests are listed +/** Launch downloads for all the descriptors whose digests are listed * as digests[i] for lo <= i < hi. (Lo and hi may be out of range.) * If <b>source</b> is given, download from <b>source</b>; otherwise, * download from an appropriate random directory server. @@ -3349,15 +3349,11 @@ update_router_descriptor_client_downloads(time_t now) should_delay = 1; } else { should_delay = (last_routerdesc_download_attempted + - MAX_CLIENT_INTERVAL_WITHOUT_REQUEST) > now; - } - if (should_delay) { -// debug(LD_DIR, "There are not many downloadable routerdescs; " -// "waiting till we have some more."); - } else { - info(LD_DIR, "There are not many downloadable routerdescs, but we've " - "been waiting long enough (%d seconds). Downloading.", - (int)(now-last_routerdesc_download_attempted)); + MAX_CLIENT_INTERVAL_WITHOUT_REQUEST) > now; + if (!should_delay) + info(LD_DIR, "There are not many downloadable routerdescs, but we've " + "been waiting long enough (%d seconds). Downloading.", + (int)(now-last_routerdesc_download_attempted)); } if (! should_delay) { |