Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURLINFO_SPEED_UPLOAD: the example is wrong #9239

Closed
jvvprasad78 opened this issue Aug 2, 2022 · 0 comments
Closed

CURLINFO_SPEED_UPLOAD: the example is wrong #9239

jvvprasad78 opened this issue Aug 2, 2022 · 0 comments

Comments

@jvvprasad78
Copy link

Example is incorrect.

res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed);
if(!res) {
printf("Upload speed %.0f bytes/sec\n", ul);

Here speed should have been used for display.

bagder added a commit that referenced this issue Aug 2, 2022
Reported-by: jvvprasad78 on github
Fixes #9239
Closes #
@bagder bagder changed the title @template man page:@https://curl.se/libcurl/c/CURLINFO_SPEED_UPLOAD.html CURLINFO_SPEED_UPLOAD: the example is wrong Aug 2, 2022
@bagder bagder self-assigned this Aug 2, 2022
@bagder bagder closed this as completed in b6dd849 Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants