cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Average speed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Jun 2009 11:45:08 +0200 (CEST)

On Mon, 8 Jun 2009, Sebastien WILLEMIJNS wrote:

>> I'm not sure I understand the question. The speed is calculated once every
>> second. In a modern PC that calculation will be significantly faster than a
>> hundredth of a second.
>
> What is the time used for calculation of this average during the 20th second
> ? from 20s 001ms to 21s 000s ?

I think the smartest thing for you to do is to read the lib/progress.c source
code and see all these details yourself.

The average speed that curl shows is the average speed so far during the
entire transfer. Going down 2 out of 1800 is about a tenth of a percent. It's
not like it is a significant amount that I find it worth to lose a lot of
sleep over. And I will most likely close your just filed bug report saying
exactly this. I doubt anyone feels like chasing for this problem that might
not even be a problem.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-08