]> git.ipfire.org Git - thirdparty/collectd.git/commit
src/daemon/utils_cache.c: Change `uc_first_metric()` to return time and value.
authorFlorian Forster <octo@collectd.org>
Wed, 31 Jan 2024 06:47:19 +0000 (07:47 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 31 Jan 2024 09:56:18 +0000 (10:56 +0100)
commitefef24f483f6387d759db5d837cf50b781134b23
treee9af8730d31e73a05f9a8bbbddbf690da647705e
parent2c0baa6aeb74cb467a146292d0805c0a1e14a97c
src/daemon/utils_cache.c: Change `uc_first_metric()` to return time and value.

Returning both in one call ensures these values are consistent, i.e. it avoids
the case that there might have been an update inbewtween reading time and
value.
src/daemon/utils_cache.c
src/daemon/utils_cache.h
src/write_redis.c