| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
RE: Determine download speed
From: Patrick K. <cooldie_1_at_hotmail.com>
Date: Sun, 13 Jun 2010 21:08:44 +0200
> I assume you're talking about the curl_easy_getinfo() data here?
Yes that is correct.
> Sorry, but for average download speed how high precision are you really aiming
I don't need a very high precision but I need a value that looks alright.
On my try with the average speed this scenario didn't work very good.
I should mention that I asked for the average speed before the download was finished.
> No, the progress and download speed logic is all gathered in that single
I'll take a look at it back again.
But maybe I'm just doing something else wrong. Lets assume this is how my callback looks like (I'm using C++ Classes so the static is needed):
So the total size of data that had been received is (size * nmemb).
So inside the function I'm checking how much time passed.
Is it right that way? The size of received that had been constant while testing. Something around ~16000.
Thanks :-)
Patrick K.
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info