X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhttp.c;h=1a276e66a3b7c869f219d76b517ebc484cf4ce8d;hb=319f52d756238aca0ba7c671f529d336757806c5;hp=30a1ca24ebe29e1407d3e7f523ec99c292f5a140;hpb=61c5b229b7ad26ce6b927639109443ad3b1170c4;p=wget diff --git a/src/http.c b/src/http.c index 30a1ca24..1a276e66 100644 --- a/src/http.c +++ b/src/http.c @@ -59,7 +59,6 @@ so, delete this exception statement from your version. */ #include "convert.h" extern char *version_string; -extern LARGE_INT total_downloaded_bytes; extern FILE *output_stream; extern bool output_stream_regular; @@ -1838,7 +1837,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy) logputs (LOG_VERBOSE, _("Length: ")); if (contlen != -1) { - logputs (LOG_VERBOSE, with_thousand_seps (contlen + contrange)); + logputs (LOG_VERBOSE, number_to_static_string (contlen + contrange)); if (contlen + contrange >= 1024) logprintf (LOG_VERBOSE, " (%s)", human_readable (contlen + contrange)); @@ -1846,11 +1845,11 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy) { if (contlen >= 1024) logprintf (LOG_VERBOSE, _(", %s (%s) remaining"), - with_thousand_seps (contlen), + number_to_static_string (contlen), human_readable (contlen)); else logprintf (LOG_VERBOSE, _(", %s remaining"), - with_thousand_seps (contlen)); + number_to_static_string (contlen)); } } else @@ -1970,7 +1969,8 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer, bool use_ts, got_head = false;/* time-stamping info */ char *filename_plus_orig_suffix; char *local_filename = NULL; - char *tms, *locf, *tmrate; + char *tms, *locf; + const char *tmrate; uerr_t err; time_t tml = -1, tmr = -1; /* local and remote time-stamps */ wgint local_size = 0; /* the size of the local file */ @@ -1996,7 +1996,7 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer, *newloc = NULL; /* Warn on (likely bogus) wildcard usage in HTTP. */ - if (has_wildcards_p (u->path)) + if (opt.ftp_glob && has_wildcards_p (u->path)) logputs (LOG_VERBOSE, _("Warning: wildcards not supported in HTTP.\n")); xzero (hstat); @@ -2360,7 +2360,8 @@ The sizes do not match (local %s) -- retrieving.\n"), return RETROK; } - tmrate = retr_rate (hstat.rd_size, hstat.dltime, 0); + tmrate = retr_rate (hstat.rd_size, hstat.dltime); + total_download_time += hstat.dltime; if (hstat.len == hstat.contlen) {