fix off by 1 error
[rrdtool.git] / src / rrd_hw_update.h
1 /*****************************************************************************
2  * rrd_hw_update.h  Functions for updating a Holt-Winters RRA
3  ****************************************************************************/
4
5 int       update_hwpredict(
6     rrd_t *rrd,
7     unsigned long cdp_idx,
8     unsigned long rra_idx,
9     unsigned long ds_idx,
10     unsigned short CDP_scratch_idx,
11     hw_functions_t * functions);
12
13 int       update_seasonal(
14     rrd_t *rrd,
15     unsigned long cdp_idx,
16     unsigned long rra_idx,
17     unsigned long ds_idx,
18     unsigned short CDP_scratch_idx,
19     rrd_value_t *seasonal_coef,
20     hw_functions_t * functions);
21
22 int       update_devpredict(
23     rrd_t *rrd,
24     unsigned long cdp_idx,
25     unsigned long rra_idx,
26     unsigned long ds_idx,
27     unsigned short CDP_scratch_idx);
28
29 int       update_devseasonal(
30     rrd_t *rrd,
31     unsigned long cdp_idx,
32     unsigned long rra_idx,
33     unsigned long ds_idx,
34     unsigned short CDP_scratch_idx,
35     rrd_value_t *seasonal_dev,
36     hw_functions_t * functions);
37
38 int       update_failures(
39     rrd_t *rrd,
40     unsigned long cdp_idx,
41     unsigned long rra_idx,
42     unsigned long ds_idx,
43     unsigned short CDP_scratch_idx,
44     hw_functions_t * functions);