author | Florian Forster <octo@collectd.org> | |
Mon, 29 Jun 2015 10:50:51 +0000 (12:50 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 29 Jun 2015 10:50:51 +0000 (12:50 +0200) | ||
commit | e41add16b3f19e89cd746a76c66cd28670037d7d | |
tree | 457a6a3e50921751e6fcde21b61f2a6df1566870 | tree | snapshot |
parent | 130316f078cadab03f6bbbbd6a8cd5cee77dc558 | commit | diff |
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.
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 | diff | blob | history | |
src/daemon/common.c | diff | blob | history | |
src/daemon/common.h | diff | blob | history | |
src/daemon/common_test.c | diff | blob | history |