- return (rrd_fetch_fn(filename,cf_idx,start,end,step,ds_cnt,ds_namv,data));
-}
-
-int
-rrd_fetch_fn(
- const char *filename, /* name of the rrd */
- enum cf_en cf_idx, /* which consolidation function ?*/
- time_t *start,
- time_t *end, /* which time frame do you want ?
- * will be changed to represent reality */
- unsigned long *step, /* which stepsize do you want?
- * will be changed to represent reality */
- unsigned long *ds_cnt, /* number of data sources in file */
- char ***ds_namv, /* names of data_sources */
- rrd_value_t **data) /* two dimensional array containing the data */
-{
- long i,ii;
- time_t cal_start,cal_end, rra_start_time,rra_end_time;
- long best_full_rra=0, best_part_rra=0, chosen_rra=0, rra_pointer=0;
- long best_full_step_diff=0, best_part_step_diff=0, tmp_step_diff=0, tmp_match=0, best_match=0;
- long full_match, rra_base;
- long start_offset, end_offset;
- int first_full = 1;
- int first_part = 1;
+ return (rrd_fetch_fn
+ (filename, cf_idx, start, end, step, ds_cnt, ds_namv, data));
+} /* int rrd_fetch_r */
+
+int rrd_fetch_fn(
+ const char *filename, /* name of the rrd */
+ enum cf_en cf_idx, /* which consolidation function ? */
+ time_t *start,
+ time_t *end, /* which time frame do you want ?
+ * will be changed to represent reality */
+ unsigned long *step, /* which stepsize do you want?
+ * will be changed to represent reality */
+ unsigned long *ds_cnt, /* number of data sources in file */
+ char ***ds_namv, /* names of data_sources */
+ rrd_value_t **data)
+{ /* two dimensional array containing the data */
+ long i, ii;
+ time_t cal_start, cal_end, rra_start_time, rra_end_time;
+ long best_full_rra = 0, best_part_rra = 0, chosen_rra =
+ 0, rra_pointer = 0;
+ long best_full_step_diff = 0, best_part_step_diff =
+ 0, tmp_step_diff = 0, tmp_match = 0, best_match = 0;
+ long full_match, rra_base;
+ long start_offset, end_offset;
+ int first_full = 1;
+ int first_part = 1;