projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a53b20
)
wget: fix a case where progress bar isn't updated if writes are very slow
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Mar 2014 15:50:29 +0000
(16:50 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Mar 2014 15:50:29 +0000
(16:50 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c
patch
|
blob
|
history
diff --git
a/networking/wget.c
b/networking/wget.c
index 62a5fcc02af0aeefa7933c798ffef47eaf825c9e..1013f66cb46cbbbfb6e64d386efd3c2766eeef33 100644
(file)
--- 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