cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress meter problem & compiling 7.8.1 fails

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Aug 2001 08:27:45 +0200 (MET DST)

On Tue, 21 Aug 2001, Andrés García wrote:

> Getleft read cURL's progress meter to show a progress bar, in Linux this
> works very well but in Windows the bar, together with the current speed
> and time left, is only updated from time to time.
>
> To test the behaviour I made a little test program:
>
> int main(void) {
> int i;
>
> for(i=0;i<10;i++) {
> printf("%d\n",i);
> fflush(stdout);
> sleep(1);
> }
> exit(0);
> }
>
> With the 'fflush' command, Tcl reads a number every second, without it,
> the numbers are read in batches.
>
> So I added a 'fflush(data->err)' command after printing the progress
> meter in 'Curl_pgrsUpdate' and the progress bar began being updated as
> often as it should.
>
> Would it be a problem to add this fflush command?

It would certainly not. I'll add it right away.

> I have also been having trouble compiling version 7.8.1 in both Cygwin
> and Red Hat, the make command stops twice.

Entirely my fault. Try Troy Engel's fix:

        http://curl.haxx.se/mail/archive-2001-08/0079.html

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-08-21