From 4cfd9a5c98ee8a4756e48cd60712368074f26711 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 4 May 2006 12:11:09 +0000 Subject: [PATCH] if end % step == 0 we should still fetch a full step ... no need for special handling git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@809 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c index 59f17c17..1ac392f5 100644 --- a/program/src/rrd_fetch.c +++ b/program/src/rrd_fetch.c @@ -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 -- 2.30.2