]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
rrd_tune HW Update
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 30 Jul 2009 07:56:31 +0000 (07:56 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 30 Jul 2009 07:56:31 +0000 (07:56 +0000)
commitdce2f388de246685fb71d472bef91c4878591375
tree8e18c5f1a90a20989f58728643dd8b3a5850d1ac
parenta23d18c19fc83ae8881eaed6a1e7a86f2fcb60ca
rrd_tune HW Update

Allow to set the smoothing window (alpha, beta, gamma) to zero.

I'm using rrdtool 1.3.8 with abberant behavior detection from the Brutlag
method. I need to use a week seasonality and no smoothing for the SEASONAL
and DEVSEASONAL. So I use rrdtune in order to set the smoothing window to
0.0. This calls the set_hwarg(). But this method is also used to tune the
alpha, beta and gamma that can't be set to 0.0 So when I tune my smoothing
window size to 0.0, it returns -1 due to the if(window<=0.0) then do
nothing. I join here a small correction with a differnent method used to set
only the smoothing window size and allowing it to be zero.

-- sylvain.luiset  gmail.com

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1875 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tune.c