src/daemon/common.[ch]: Improve signature of value_to_rate().
authorFlorian Forster <octo@collectd.org>
Mon, 29 Jun 2015 10:50:51 +0000 (12:50 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 29 Jun 2015 10:50:51 +0000 (12:50 +0200)
commite41add16b3f19e89cd746a76c66cd28670037d7d
tree457a6a3e50921751e6fcde21b61f2a6df1566870
parent130316f078cadab03f6bbbbd6a8cd5cee77dc558
src/daemon/common.[ch]: Improve signature of value_to_rate().

Passing in "value" as a derive_t and returning the rate as a value_t is
just inconvenient and wrong. Instead, pass "value" as a value_t and return
the rate in a gauge_t. While at it, move the state pointer to the end of
the argument list.
src/cpu.c
src/daemon/common.c
src/daemon/common.h
src/daemon/common_test.c