summaryrefslogtreecommitdiff
path: root/src/tool_writeout.h
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2020-03-26 23:15:37 +0100
committerMichael Kaufmann <mail@michael-kaufmann.ch>2020-03-27 23:32:25 +0100
commit884de1a763af186984cbcbe7b35b551c06025284 (patch)
tree44278ea099d5565e87378d0b4d9c88e1e65db26e /src/tool_writeout.h
parentd973bdf88175ea16ea2e3045a724c1df4f9dd507 (diff)
downloadcurl-884de1a763af186984cbcbe7b35b551c06025284.tar.gz
writeout_json: Fix data type issues
Load long values correctly (e.g. for http_code). Use curl_off_t (not long) for: - size_download (CURLINFO_SIZE_DOWNLOAD_T) - size_upload (CURLINFO_SIZE_UPLOAD_T) The unit for these values is bytes/second, not microseconds: - speed_download (CURLINFO_SPEED_DOWNLOAD_T) - speed_upload (CURLINFO_SPEED_UPLOAD_T) Fixes #5131 Closes #5152
Diffstat (limited to 'src/tool_writeout.h')
-rw-r--r--src/tool_writeout.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_writeout.h b/src/tool_writeout.h
index 64d759575..a21787ab9 100644
--- a/src/tool_writeout.h
+++ b/src/tool_writeout.h
@@ -65,6 +65,7 @@ typedef enum {
JSON_NONE,
JSON_STRING,
JSON_LONG,
+ JSON_OFFSET,
JSON_TIME,
JSON_VERSION,
JSON_FILENAME