Code

The end of the export range should not be adjusted DOWN but UP to hit the next matchi...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 11 Jan 2010 08:11:19 +0000 (08:11 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 11 Jan 2010 08:11:19 +0000 (08:11 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_xport.c

index ea67a02a1f98d9dd425e3301881985cb1c30ba8e..0899e9085f851ba5fd607fa86879eae3fad16264 100644 (file)
@@ -258,7 +258,7 @@ int rrd_xport_fn(
     free(step_list);
     
     *start =  im->start - im->start % (*step);
-    *end = im->end - im->end % (*step);
+    *end = im->end - im->end % (*step) + (*step);
     
 
     /* room for rearranged data */