X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=02ecb1d68034b224085a4ca97c6903b1ff66bed0;hp=9bae2d236eeb3441f51d9972cf4b3c33735a409b;hb=f33c27562106ccbd12f7fcdeb6f38aa153183463;hpb=47bf277fb5fc7c223601c3cae6646d9121c31553 diff --git a/src/main.c b/src/main.c index 9bae2d23..02ecb1d6 100644 --- a/src/main.c +++ b/src/main.c @@ -80,6 +80,9 @@ static void redirect_output_signal (int); #endif const char *exec_name; + +/* Number of successfully downloaded URLs */ +int numurls = 0; #ifndef TESTING /* Initialize I18N/L10N. That amounts to invoking setlocale, and @@ -1231,7 +1234,7 @@ WARNING: Can't reopen standard output in binary mode;\n\ logprintf (LOG_NOTQUIET, _("FINISHED --%s--\nDownloaded: %d files, %s in %s (%s)\n"), datetime_str (time (NULL)), - opt.numurls, + numurls, human_readable (total_downloaded_bytes), secs_to_human_time (total_download_time), retr_rate (total_downloaded_bytes, total_download_time));