mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix for bug #24948.
This commit is contained in:
parent
259c560166
commit
4bbcfc2a1d
@ -1,3 +1,9 @@
|
|||||||
|
2009-06-15 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
|
* retr.c (fd_read_body): Make both args to progress_create
|
||||||
|
consistent, resulting in an accurate progress display. Fixes bug
|
||||||
|
#24948.
|
||||||
|
|
||||||
2009-06-14 Micah Cowan <micah@cowan.name>
|
2009-06-14 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Makefile.am (wget_SOURCES): css-tokens.h needs to ship with
|
* Makefile.am (wget_SOURCES): css-tokens.h needs to ship with
|
||||||
|
@ -226,7 +226,8 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
|
|||||||
/* If we're skipping STARTPOS bytes, pass 0 as the INITIAL
|
/* If we're skipping STARTPOS bytes, pass 0 as the INITIAL
|
||||||
argument to progress_create because the indicator doesn't
|
argument to progress_create because the indicator doesn't
|
||||||
(yet) know about "skipping" data. */
|
(yet) know about "skipping" data. */
|
||||||
progress = progress_create (skip ? 0 : startpos, startpos + toread);
|
wgint start = skip ? 0 : startpos;
|
||||||
|
progress = progress_create (start, start + toread);
|
||||||
progress_interactive = progress_interactive_p (progress);
|
progress_interactive = progress_interactive_p (progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user