cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress callback interval

From: Cory Nelson <phrosty_at_gmail.com>
Date: Wed, 30 Mar 2005 01:08:03 -0800

Thanks, that did it.

On Wed, 30 Mar 2005 10:49:57 +0200 (CEST), Daniel Stenberg
<daniel-curl_at_haxx.se> wrote:
> On Wed, 30 Mar 2005, Cory Nelson wrote:
>
> >>> Where would I change the progress callback interval in libcurl?
>
> >> You can't.
> >
> > Why not? It has to be somewhere in the source, could you at least point me
> > in the right direction?
>
> Of course you can make anything happen by altering the source, I didn't think
> you were up to that kind of operation. You'll very easily find yourself alone
> in the end of a one-way street...
>
> But I won't tell you what to do, here's how you can alter this time:
>
> 1. Check out the Transfer() function in lib/transfer.c, around line 1558. It
> sets the 'interval_ms' to 1000 millseconds. Alter that.
>
> 2. Check the Curl_pgrsUpdate() function in lib/progress.c, around line 283.
> You need to alter that, to make libcurl NOT prevent multiple calls during the
> same second.
>
> Good luck!
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>

-- 
Cory Nelson
http://www.int64.org
Received on 2005-03-30