]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: fix time_posttransfer output unit as seconds
authorSergey Katsubo <skatsubo@gmail.com>
Mon, 15 Dec 2025 21:04:14 +0000 (00:04 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Dec 2025 21:40:25 +0000 (22:40 +0100)
Closes #19986

docs/cmdline-opts/write-out.md
docs/libcurl/opts/CURLINFO_POSTTRANSFER_TIME_T.md

index 9946349c1552f279a762489f1ac4c5c5184bbe73..5b8fdb3e47ee30a7b67b34fe253bad2001348adb 100644 (file)
@@ -245,8 +245,8 @@ The time, in seconds, it took from the start until the name resolving was
 completed.
 
 ## `time_posttransfer`
-The time it took from the start until the last byte is sent by libcurl.
-In microseconds. (Added in 8.10.0)
+The time, in seconds, it took from the start until the last byte is sent
+by libcurl. (Added in 8.10.0)
 
 ## `time_pretransfer`
 The time, in seconds, it took from the start until the file transfer was just
index 0f4dc19ceeb5e6aee498b13f46d351a42088a429..f2785c0a6f11e567286140fd619793125c90fb97 100644 (file)
@@ -53,7 +53,7 @@ int main(void)
       res = curl_easy_getinfo(curl, CURLINFO_POSTTRANSFER_TIME_T,
                               &posttransfer);
       if(CURLE_OK == res) {
-        printf("Request sent after: %" CURL_FORMAT_CURL_OFF_T ".%06ld us",
+        printf("Request sent after: %" CURL_FORMAT_CURL_OFF_T ".%06ld s",
                posttransfer / 1000000, (long)(posttransfer % 1000000));
       }
     }