Code

src/daemon/common.c: Fix handling of counter_t in value_to_rate().
authorFlorian Forster <octo@collectd.org>
Sun, 28 Jun 2015 13:00:49 +0000 (15:00 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 28 Jun 2015 13:00:49 +0000 (15:00 +0200)
commit9461848421c468d9117bf6c57335b344db0a420e
tree0865bd05febdef83d28e35e0db1232c3e60442ba
parent233ef890d210e7f231ebbc474894e90032ba49b1
src/daemon/common.c: Fix handling of counter_t in value_to_rate().

Also fixes an off-by-one error in counter_diff() and adds a unit test for
the function.
src/daemon/common.c
src/daemon/common_test.c
src/testing.h