cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl statistics are always off by about 5-10%

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Mar 2013 14:35:06 +0100 (CET)

On Mon, 25 Mar 2013, Sven Lanckmans wrote:

> I've set up a local ftp server which has a file with size of 100MB.

All speed numbers and progress units in (lib)curl are 1024 based. So 100MB
would be 100*1024*1024 bytes. 1KB/s means 1024 bytes per second etc. Seems
like it can explain some of your deviations.

-- 
  / 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 2013-03-25