summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96d6811)
raw | patch | inline | side by side (parent: 96d6811)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 4 May 2006 12:11:09 +0000 (12:11 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 4 May 2006 12:11:09 +0000 (12:11 +0000) |
for special handling
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@809 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@809 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_fetch.c | patch | blob | history |
diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c
index 59f17c17f4dd9cf35493570ec902dafc8f75aff1..1ac392f514c29fef8f042e8af19402672b2dac28 100644 (file)
--- a/src/rrd_fetch.c
+++ b/src/rrd_fetch.c
/* 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