]> git.ipfire.org Git - thirdparty/collectd.git/commit
format_stackdriver: Check for counter reset in format_time_series().
authorFlorian Forster <octo@google.com>
Thu, 2 Jul 2020 10:11:52 +0000 (12:11 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:03 +0000 (13:40 +0200)
commitc6e196464a0395495ed39286776e8d7d0934ff26
tree164a3ec19fa0c35a9afb2df70786befa4224a3d0
parent4849fd16bbf58153bd70f0f8b460ec1a00567146
format_stackdriver: Check for counter reset in format_time_series().

Previously, this check was done in format_typed_value() when the time
series data was already partially written to the buffer. Doing the check
there would result in invalid JSON output.

Additionally, the comparison was the wrong way around, causing the
assertion to fail for all counter metrics.
src/utils/format_stackdriver/format_stackdriver.c