prepare for the release of rrdtool-1.2.18
[rrdtool.git] / src / rrd_fetch.c
index 59f17c1..647c2cf 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * 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
  *****************************************************************************
@@ -294,7 +294,7 @@ fprintf(stderr,"partial match, not best\n");
     /* 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