]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Working average has value at position k added. MyMod ensures k wraps around
authorTobias Oetiker <tobi@oetiker.ch>
Wed, 29 Oct 2014 13:33:08 +0000 (14:33 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 29 Oct 2014 14:16:43 +0000 (15:16 +0100)
commitf09fbd3bbfba02528419e5fb7c6315ff94304546
tree7cd5b7d37af250f0bd6a0c79b3902fd986d1d06b
parent7124cca94677d5fa88ad48b06b669d90ac0d4dc6
Working average has value at position k added. MyMod ensures k wraps around
to beginning when in excess of row_count.  But when wrapping around the
first (#=offset) entries are already updated so you are smoothing later
values using pre-smoothed values.  This is effectively double weighting some
values and diluting the last (#=offset) values smoothed since they are
getting some effect from outside their expected smoothing window.

This patch fixes the problem by first makeing a copy of the rrd_values.
src/rrd_hw.c