From 5a99be254566758d8ff42d905cad98b1ee7a2e87 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Feb 2000 22:57:42 +0000 Subject: updated to use the new set of progress-functions --- lib/file.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/file.c') diff --git a/lib/file.c b/lib/file.c index b5d198e57..99759f477 100644 --- a/lib/file.c +++ b/lib/file.c @@ -145,7 +145,12 @@ UrgError file(struct UrlData *data, char *path, long *bytecountp) this is both more efficient than the former call to download() and it avoids problems with select() and recv() on file descriptors in Winsock */ +#if 0 ProgressInit (data, expected_size); +#endif + if(expected_size != -1) + pgrsSetDownloadSize(data, expected_size); + while (1) { nread = read(fd, buf, BUFSIZE-1); @@ -164,10 +169,16 @@ UrgError file(struct UrlData *data, char *path, long *bytecountp) return URG_WRITE_ERROR; } now = tvnow(); + pgrsUpdate(data); +#if 0 ProgressShow (data, bytecount, start, now, FALSE); +#endif } now = tvnow(); +#if 0 ProgressShow (data, bytecount, start, now, TRUE); +#endif + pgrsUpdate(data); close(fd); -- cgit v1.2.3