From: Sergey Katsubo Date: Mon, 15 Dec 2025 21:04:14 +0000 (+0300) Subject: docs: fix time_posttransfer output unit as seconds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9570fa790865d53e0240b3a35aaac7b82de09f5c;p=thirdparty%2Fcurl.git docs: fix time_posttransfer output unit as seconds Closes #19986 --- diff --git a/docs/cmdline-opts/write-out.md b/docs/cmdline-opts/write-out.md index 9946349c15..5b8fdb3e47 100644 --- a/docs/cmdline-opts/write-out.md +++ b/docs/cmdline-opts/write-out.md @@ -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 diff --git a/docs/libcurl/opts/CURLINFO_POSTTRANSFER_TIME_T.md b/docs/libcurl/opts/CURLINFO_POSTTRANSFER_TIME_T.md index 0f4dc19cee..f2785c0a6f 100644 --- a/docs/libcurl/opts/CURLINFO_POSTTRANSFER_TIME_T.md +++ b/docs/libcurl/opts/CURLINFO_POSTTRANSFER_TIME_T.md @@ -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)); } }