Skip to content

CURLINFO_SPEED_UPLOAD: the example is wrong #9239

Closed
@jvvprasad78

Description

@jvvprasad78

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.

Activity

added a commit that references this issue on Aug 2, 2022
7651457
changed the title [-]@template man page:@https://curl.se/libcurl/c/CURLINFO_SPEED_UPLOAD.html[/-] [+]CURLINFO_SPEED_UPLOAD: the example is wrong[/+] on Aug 2, 2022
self-assigned this
on Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @bagder@jvvprasad78

    Issue actions

      CURLINFO_SPEED_UPLOAD: the example is wrong · Issue #9239 · curl/curl