diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-06-15 15:26:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-06-19 09:27:42 +0200 |
commit | 3b80d3ca46b12e52342199f4a8452624bb6e33e2 (patch) | |
tree | ca9a3520a701148074c1061f65089e985144cbc6 /docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 | |
parent | 6208547002b4d897c14364661ca4e2e5d0b80006 (diff) |
getinfo: return sizes as curl_off_t
This change introduces new alternatives for the existing six
curl_easy_getinfo() options that return sizes or speeds as doubles. The
new versions are named like the old ones but with an appended '_T':
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
CURLINFO_CONTENT_LENGTH_UPLOAD_T
CURLINFO_SIZE_DOWNLOAD_T
CURLINFO_SIZE_UPLOAD_T
CURLINFO_SPEED_DOWNLOAD_T
CURLINFO_SPEED_UPLOAD_T
Closes #1511
Diffstat (limited to 'docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3')
-rw-r--r-- | docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 b/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 index 15e03800c..e78503c10 100644 --- a/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 +++ b/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 @@ -30,6 +30,9 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SPEED_DOWNLOAD, double *speed) .SH DESCRIPTION Pass a pointer to a double to receive the average download speed that curl measured for the complete download. Measured in bytes/second. + +\fICURLINFO_SPEED_DOWNLOAD_T(3)\fP is a newer replacement that returns a more +sensible variable type. .SH PROTOCOLS .SH EXAMPLE .nf @@ -56,3 +59,4 @@ Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. .SH "SEE ALSO" .BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), " .BR CURLINFO_SPEED_UPLOAD "(3), " +.BR CURLINFO_SIZE_UPLOAD_T "(3), " |