diff options
author | Denys Vlasenko | 2014-03-27 16:50:29 +0100 |
---|---|---|
committer | Denys Vlasenko | 2014-03-27 16:50:29 +0100 |
commit | faa9e94db619d1110061687278cde93a651e69de (patch) | |
tree | 50c506f8061cc38eed03e5eb39d6788d14086097 /networking | |
parent | 0a53b203f9e7157136c8ab4e8753008a63a56660 (diff) | |
download | busybox-faa9e94db619d1110061687278cde93a651e69de.zip busybox-faa9e94db619d1110061687278cde93a651e69de.tar.gz |
wget: fix a case where progress bar isn't updated if writes are very slow
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 62a5fcc..1013f66 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -640,7 +640,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp) #if ENABLE_FEATURE_WGET_TIMEOUT second_cnt = G.timeout_seconds; #endif - continue; + goto bump; } /* n <= 0. @@ -673,11 +673,12 @@ static void NOINLINE retrieve_file_data(FILE *dfp) * to try reading anyway. */ } +#endif + bump: /* Need to do it _every_ second for "stalled" indicator * to be shown properly. */ progress_meter(PROGRESS_BUMP); -#endif } /* while (reading data) */ #if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT |