rrd_tune HW Update
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 30 Jul 2009 07:56:31 +0000 (07:56 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 30 Jul 2009 07:56:31 +0000 (07:56 +0000)
commitbbc1b9145f73b6ad2d97e45bb72af956708e3bcf
tree8e18c5f1a90a20989f58728643dd8b3a5850d1ac
parent757b4d369d2f99a1da0b223f9489a25077ad3ec5
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