X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=155bae9c01745753f504ecc860be9a93627be99b;hb=9e6db622e8756105c1322481b34650ecbe15da1a;hp=59f17c17f4dd9cf35493570ec902dafc8f75aff1;hpb=4e72db81565dc384eea4f56f6ad96b9bb3e6bbd9;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 59f17c1..155bae9 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.12 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.14 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