projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix from alex
[rrdtool.git]
/
src
/
rrd_hw.c
diff --git
a/src/rrd_hw.c
b/src/rrd_hw.c
index
e802412
..
e563926
100644
(file)
--- a/
src/rrd_hw.c
+++ b/
src/rrd_hw.c
@@
-1,5
+1,5
@@
/*****************************************************************************
/*****************************************************************************
- * 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
*****************************************************************************
*****************************************************************************
* rrd_hw.c : Support for Holt-Winters Smoothing/ Aberrant Behavior Detection
*****************************************************************************
@@
-141,8
+141,8
@@
int apply_smoother(
if (atoi(rrd->stat_head->version) >= 4) {
offset = floor(rrd->rra_def[rra_idx].
if (atoi(rrd->stat_head->version) >= 4) {
offset = floor(rrd->rra_def[rra_idx].
-
par[RRA_seasonal_smoothing_window].
-
u_val / 2 * row_count);
+ par[RRA_seasonal_smoothing_window].
+ u_val / 2 * row_count);
} else {
offset = floor(0.05 / 2 * row_count);
}
} else {
offset = floor(0.05 / 2 * row_count);
}
@@
-422,7
+422,7
@@
int update_aberrant_CF(
hw_multiplicative_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
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 = {
};
static hw_functions_t hw_additive_functions = {
@@
-433,7
+433,7
@@
int update_aberrant_CF(
hw_additive_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
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;
};
rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val = pdp_val;