[or-cvs] Improve the "we have been waiting for 1140377851 seconds" log
Peter Palfrader
weasel at seul.org
Sun Feb 19 19:44:12 UTC 2006
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv9743
Modified Files:
routerlist.c
Log Message:
Improve the "we have been waiting for 1140377851 seconds" log
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.447
retrieving revision 1.448
diff -u -p -d -r1.447 -r1.448
--- routerlist.c 15 Feb 2006 03:01:53 -0000 1.447
+++ routerlist.c 19 Feb 2006 19:44:09 -0000 1.448
@@ -3449,11 +3449,18 @@ update_router_descriptor_client_download
} 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) {
More information about the tor-commits
mailing list