diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-02-19 19:44:09 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2006-02-19 19:44:09 +0000 |
commit | c4f389420ca7b9afe502af50a7dcfc342f5a4f29 (patch) | |
tree | dbc85ace3fd237bfd2d781347f16764d1842ace3 | |
parent | d902143a754a65db553343be71fcf5ba16645ac6 (diff) | |
download | tor-c4f389420ca7b9afe502af50a7dcfc342f5a4f29.tar tor-c4f389420ca7b9afe502af50a7dcfc342f5a4f29.tar.gz |
Improve the "we have been waiting for 1140377851 seconds" log
svn:r6046
-rw-r--r-- | src/or/routerlist.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d642b02b1..37d424826 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3449,11 +3449,18 @@ update_router_descriptor_client_downloads(time_t now) } else { should_delay = (last_routerdesc_download_attempted + MAX_CLIENT_INTERVAL_WITHOUT_REQUEST) > now; - if (!should_delay) - log_info(LD_DIR, + if (!should_delay) { + if (last_routerdesc_download_attempted) { + log_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)); + } else { + log_info(LD_DIR, + "There are not many downloadable routerdescs, but we've " + "never downloaded descriptors before. Downloading."); + } + } } if (! should_delay) { |