]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLINFO_SPEED_UPLOAD/DOWNLOAD.3: fix examples
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Aug 2022 14:15:55 +0000 (16:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 7 Aug 2022 12:25:55 +0000 (14:25 +0200)
Reported-by: jvvprasad78 on github
Assisted-by: Jay Satiro
Fixes #9239
Closes #9241

docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3

index 3abcef8f465973aa78a162329a41888cac16ccb2..c9dbfb2af8c272d851224dd65c885c0ea2beed38 100644 (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);
     }
   }
 }
index 29c0e88bf9d8cb8b21efd93e4467cdbd381229e9..dbc52c6103e74a6d07ce0db6554eef7385f6fe84 100644 (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);
     }
   }
 }