]> git.ipfire.org Git - thirdparty/collectd.git/commit
curl_stats: fix compatibility with new versions of cURL. 4156/head
authorFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 07:28:06 +0000 (08:28 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 07:28:06 +0000 (08:28 +0100)
commit096cbe9f24ce5d89418cad1a6904f4e2967ffdf4
tree8323085e5715e8e24eddc3fb4b8882798dec1723
parentedc4e726ea85bedfc9a3f143ab8b3e11d6a11c79
curl_stats: fix compatibility with new versions of cURL.

Use integer based keys for metrics if available.

cURL ≥ 7.55.0 provides additional keys that allow getting certain
metrics as integers rather than doubles, e.g. content length. In some
newer versions of cURL, the original keys (using doubles) are marked as
deprecated.

ChangeLog: cURL, cURL-JSON, cURL-XML, Write HTTP plugins: fix compatibility with new versions of cURL.
src/utils/curl_stats/curl_stats.c