/*****************************************************************************
- * RRDtool 1.2.12 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006
*****************************************************************************
* rrd_fetch.c read date from an rrd to use for further processing
*****************************************************************************
/* set the wish parameters to their real values */
*step = rrd.stat_head->pdp_step * rrd.rra_def[chosen_rra].pdp_cnt;
*start -= (*start % *step);
- if (*end % *step) *end += (*step - *end % *step);
+ *end += (*step - *end % *step);
rows = (*end - *start) / *step + 1;
#ifdef DEBUG