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:
parent
073268a6de
commit
b6dd849fa3
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user