]> git.ipfire.org Git - thirdparty/collectd.git/commit
resource_metrics: Fix bugs surfaced by the unit test.
authorFlorian Forster <octo@collectd.org>
Sat, 16 Dec 2023 11:58:37 +0000 (12:58 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 18 Dec 2023 22:28:18 +0000 (23:28 +0100)
commit584c67fbecdfad71e456f73bc361975b1240273a
tree2b3e4629e2981fdac257b82b20af60940c475abc
parent2e989a90203d5f589935efbb77d1c8d0cf994762
resource_metrics: Fix bugs surfaced by the unit test.

* Sort metric families after inserting.
* Dereference the pointer-pointer returned by `bsearch` in `lookup_family`.
* Delete the metrics created by `metric_family_clone`.
* Run ./contrib/format.sh
src/utils/resource_metrics/resource_metrics.c