CURLINFO_SPEED_UPLOAD/DOWNLOAD.3: fix examples

Reported-by: jvvprasad78 on github
Assisted-by: Jay Satiro
Fixes #9239
Closes #9241
This commit is contained in:
Daniel Stenberg 2022-08-02 16:15:55 +02:00
parent 073268a6de
commit b6dd849fa3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ if(curl) {
double speed;
res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &speed);
if(!res) {
printf("Download speed %.0f bytes/sec\\n", ul);
printf("Download speed %.0f bytes/sec\\n", speed);
}
}
}

View File

@ -51,7 +51,7 @@ if(curl) {
double speed;
res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed);
if(!res) {
printf("Upload speed %.0f bytes/sec\\n", ul);
printf("Upload speed %.0f bytes/sec\\n", speed);
}
}
}