]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Working average has value at position k added. MyMod ensures k wraps around 551/head
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 13:33:08 +0000 (14:33 +0100)
commit7b0d500fc41eeb51e5dc394ef8d607a6b0e489ce
tree636e7861e0dc3989b3544d90575a70187318f947
parent75e8d4a0269288b4348da62b17f51682082a2e1b
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