diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-11 23:06:21 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-11 23:06:21 +0100 |
commit | 88ad9da65ef6227e366a60b58be22c83bcf11c18 (patch) | |
tree | 09e3145d2febe76acc9117a716b6d14b3d2b2bcc | |
parent | c60f4460bb3f53c5cfcfd01c99a50eb9ae69f8aa (diff) | |
download | busybox-w32-88ad9da65ef6227e366a60b58be22c83bcf11c18.tar.gz busybox-w32-88ad9da65ef6227e366a60b58be22c83bcf11c18.tar.bz2 busybox-w32-88ad9da65ef6227e366a60b58be22c83bcf11c18.zip |
wget: display 100% at the _end_ of chunked download
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 4ef5900cb..44eb4cf18 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -556,9 +556,8 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd) | |||
556 | } | 556 | } |
557 | #if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT | 557 | #if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT |
558 | clearerr(dfp); | 558 | clearerr(dfp); |
559 | ndelay_off(polldata.fd); | 559 | ndelay_off(polldata.fd); /* else fgets can get very unhappy */ |
560 | #endif | 560 | #endif |
561 | |||
562 | if (!G.chunked) | 561 | if (!G.chunked) |
563 | break; | 562 | break; |
564 | 563 | ||
@@ -572,6 +571,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd) | |||
572 | G.got_clen = 1; | 571 | G.got_clen = 1; |
573 | } | 572 | } |
574 | 573 | ||
574 | G.chunked = 0; /* make progress meter show 100% even for chunked */ | ||
575 | progress_meter(PROGRESS_END); | 575 | progress_meter(PROGRESS_END); |
576 | } | 576 | } |
577 | 577 | ||