aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-03-27 16:50:29 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2014-03-27 16:50:29 +0100
commitfaa9e94db619d1110061687278cde93a651e69de (patch)
tree50c506f8061cc38eed03e5eb39d6788d14086097 /networking/wget.c
parent0a53b203f9e7157136c8ab4e8753008a63a56660 (diff)
downloadbusybox-w32-faa9e94db619d1110061687278cde93a651e69de.tar.gz
busybox-w32-faa9e94db619d1110061687278cde93a651e69de.tar.bz2
busybox-w32-faa9e94db619d1110061687278cde93a651e69de.zip
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/wget.c')
-rw-r--r--networking/wget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 62a5fcc02..1013f66cb 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -640,7 +640,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
640#if ENABLE_FEATURE_WGET_TIMEOUT 640#if ENABLE_FEATURE_WGET_TIMEOUT
641 second_cnt = G.timeout_seconds; 641 second_cnt = G.timeout_seconds;
642#endif 642#endif
643 continue; 643 goto bump;
644 } 644 }
645 645
646 /* n <= 0. 646 /* n <= 0.
@@ -673,11 +673,12 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
673 * to try reading anyway. 673 * to try reading anyway.
674 */ 674 */
675 } 675 }
676#endif
677 bump:
676 /* Need to do it _every_ second for "stalled" indicator 678 /* Need to do it _every_ second for "stalled" indicator
677 * to be shown properly. 679 * to be shown properly.
678 */ 680 */
679 progress_meter(PROGRESS_BUMP); 681 progress_meter(PROGRESS_BUMP);
680#endif
681 } /* while (reading data) */ 682 } /* while (reading data) */
682 683
683#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT 684#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT