X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_hw.c;h=6f2c50732051c5c16dfbb8644904b968e8c40956;hp=3b1ba7c68612d056bb9fbca84f26131f1d82cb2f;hb=aff0a2728543eee1ac21f3fa02f171caae8d9362;hpb=40cc8b00296079815f08c2ff55f134efae83ea69 diff --git a/src/rrd_hw.c b/src/rrd_hw.c index 3b1ba7c..6f2c507 100644 --- a/src/rrd_hw.c +++ b/src/rrd_hw.c @@ -1,11 +1,13 @@ /***************************************************************************** - * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * rrd_hw.c : Support for Holt-Winters Smoothing/ Aberrant Behavior Detection ***************************************************************************** * Initial version by Jake Brutlag, WebTV Networks, 5/1/00 *****************************************************************************/ +#include + #include "rrd_tool.h" #include "rrd_hw.h" #include "rrd_hw_math.h" @@ -422,7 +424,7 @@ int update_aberrant_CF( hw_multiplicative_init_seasonality, hw_calculate_seasonal_deviation, hw_init_seasonal_deviation, - 1.0 // identity value + 1.0 /* identity value */ }; static hw_functions_t hw_additive_functions = { @@ -433,7 +435,7 @@ int update_aberrant_CF( hw_additive_init_seasonality, hw_calculate_seasonal_deviation, hw_init_seasonal_deviation, - 0.0 // identity value + 0.0 /* identity value */ }; rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val = pdp_val;