cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bad double/long cast for progress.timespent, wrongCurl_pgrsUpdate placement in Curl_pgrsDone,

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 2 Apr 2004 09:30:28 +0200 (CEST)

On Thu, 1 Apr 2004, Dirk Manske wrote:

> since release 1.58 of progress.c there is bad casting mistake, which makes
> CURLINFO_TOTAL_TIME truncated to full seconds.

Thanks for your sharp eyes and keen brain. Fix committed.

> And I think in Curl_pgrsDone() is a mistake. Should not be
> Curl_pgrsUpdate(conn) in front of the "if" statement?

Yes, Curl_pgrsDone() was not correct. Based on your comment here I committed a
fix I believe in.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-02