diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-05 22:36:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-05 22:36:18 +0000 |
commit | 56be5a97064fac61b0fcd7826459e100c0856707 (patch) | |
tree | 5167dcb312fcf902bf06da7df3b4e8c19787773f /src/or/routerlist.c | |
parent | 039edb3dbb8080dea7b9bbbfb0a18c16f95fd95d (diff) | |
download | tor-56be5a97064fac61b0fcd7826459e100c0856707.tar tor-56be5a97064fac61b0fcd7826459e100c0856707.tar.gz |
I *knew* something was wrong here. Flip some comparison operators and make download-rate-limiting sane again.
svn:r5201
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 41f392c72..921a3db9d 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2715,15 +2715,16 @@ update_router_descriptor_downloads(time_t now) } else { if (dirserv) { should_delay = (last_routerdesc_download_attempted + - MAX_SERVER_INTERVAL_WITHOUT_REQUEST) < now; + MAX_SERVER_INTERVAL_WITHOUT_REQUEST) > now; } else { should_delay = (last_routerdesc_download_attempted + - MAX_CLIENT_INTERVAL_WITHOUT_REQUEST) < now; + MAX_CLIENT_INTERVAL_WITHOUT_REQUEST) > now; } if (should_delay) - log_fn(LOG_INFO, "There are not many downloadable routerdescs; waiting till we have some more."); + log_fn(LOG_DEBUG, "There are not many downloadable routerdescs; waiting till we have some more."); else - log_fn(LOG_INFO, "There are not many downloadable routerdescs, but we've been waiting long enough. Downloading."); + log_fn(LOG_INFO, "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) { |