Skip to content

tool_writeout: use _T types instead of doubles#6248

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/curl-writeout-t
Closed

tool_writeout: use _T types instead of doubles#6248
bagder wants to merge 1 commit into
masterfrom
bagder/curl-writeout-t

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Nov 25, 2020

Commit 3b80d3c (June 2017) introduced these getinfo
variables that use curl_off_t instead of doubles. Now switch the
--write-out function to use them.

@cvengler
Copy link
Copy Markdown
Contributor

Looks good to me but the commit message is a bit misleading IMO. The "_T" gives me C++ template flashbacks to some degree. I think "tool_writeout: use custom types instead of standard types" is a better message.

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Nov 25, 2020

it refers to the curl_easy_getinfo() identifiers. I don't like "custom" vs "standard" as that's not the point. The point is rather that it uses a (large enough) fixed-point type instead of a floating point type.

Commit 3b80d3c (June 2017) introduced getinfo replacement
variables that use curl_off_t instead of doubles. Switch the --write-out
function over to use them.
@bagder bagder force-pushed the bagder/curl-writeout-t branch from 83d7c1b to fcfaffe Compare November 25, 2020 22:31
@bagder bagder closed this in fc813f8 Nov 26, 2020
@bagder bagder deleted the bagder/curl-writeout-t branch November 26, 2020 07:14
bagder added a commit that referenced this pull request Dec 14, 2020
Fix regression from commit fc813f8 (#6248) that changed the unit
to microseconds instead of seconds with fractions

Fixes #6321
bagder added a commit that referenced this pull request Dec 15, 2020
Fix regression from commit fc813f8 (#6248) that changed the unit
to microseconds instead of seconds with fractions

Reported-by: 不确定
Fixes #6321
Closes #6322
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants