index 59f17c17f4dd9cf35493570ec902dafc8f75aff1..8cbbdd673383e2c35234f2a894db196812168f5e 100644 (file)
--- a/program/src/rrd_fetch.c
+++ b/program/src/rrd_fetch.c
/*****************************************************************************
- * RRDtool 1.2.12 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.13 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