mirror of
https://github.com/sheumann/hush.git
synced 2024-12-24 12:29:47 +00:00
wget: fix a case where progress bar isn't updated if writes are very slow
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0a53b203f9
commit
faa9e94db6
@ -640,7 +640,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
|
|||||||
#if ENABLE_FEATURE_WGET_TIMEOUT
|
#if ENABLE_FEATURE_WGET_TIMEOUT
|
||||||
second_cnt = G.timeout_seconds;
|
second_cnt = G.timeout_seconds;
|
||||||
#endif
|
#endif
|
||||||
continue;
|
goto bump;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* n <= 0.
|
/* n <= 0.
|
||||||
@ -673,11 +673,12 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
|
|||||||
* to try reading anyway.
|
* to try reading anyway.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
bump:
|
||||||
/* Need to do it _every_ second for "stalled" indicator
|
/* Need to do it _every_ second for "stalled" indicator
|
||||||
* to be shown properly.
|
* to be shown properly.
|
||||||
*/
|
*/
|
||||||
progress_meter(PROGRESS_BUMP);
|
progress_meter(PROGRESS_BUMP);
|
||||||
#endif
|
|
||||||
} /* while (reading data) */
|
} /* while (reading data) */
|
||||||
|
|
||||||
#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT
|
#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT
|
||||||
|
Loading…
Reference in New Issue
Block a user