From b9d8781b771b3f8e86549aa84d0c10d3d2e0364a Mon Sep 17 00:00:00 2001 From: hniksic Date: Sat, 17 Sep 2005 06:07:00 -0700 Subject: [PATCH] [svn] Don't print download summary if nothing has been downloaded. --- src/ChangeLog | 4 ++++ src/main.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e77e711f..e02968a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-09-17 Hrvoje Niksic + + * main.c (main): Don't print the summary if nothing has been downloaded. + 2005-09-17 Hrvoje Niksic * retr.c (retr_rate): Rename parameter from MSECS to SECS since it diff --git a/src/main.c b/src/main.c index 6107a51d..0fc5b3d7 100644 --- a/src/main.c +++ b/src/main.c @@ -968,9 +968,11 @@ Can't timestamp and not clobber old files at the same time.\n")); opt.input_filename); } /* Print the downloaded sum. */ - if (opt.recursive || opt.page_requisites - || nurl > 1 - || (opt.input_filename && total_downloaded_bytes != 0)) + if ((opt.recursive || opt.page_requisites + || nurl > 1 + || (opt.input_filename && total_downloaded_bytes != 0)) + && + total_downloaded_bytes != 0) { logprintf (LOG_NOTQUIET, _("FINISHED --%s--\nDownloaded: %d files, %s in %s (%s)\n"),