cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: anybody ever met the percent issue in result?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Nov 2009 20:10:05 +0100 (CET)

On Thu, 5 Nov 2009, $BMk2&(J wrote:

>> it seems suspect in lib/process.c:410, would be better if it looks like:

I disagree. I suggest the attached patch instead. It fixes two problems:

1 - it offers percentage for transfers smaller than 100 bytes (which we
     basically never have done in the past!) I setup a test URL for this
     http://daniel.haxx.se/test/99

2 - it fixes the percentage for small files, like 199 299 399 etc since the
     math was slightly off for those. A test URL for this is at:
     http://daniel.haxx.se/test/192

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2009-11-04