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.3@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_xport.c

index 80e40c51be7212b44cb71c382b4c4ac5cecd28d1..e544b7d9b27a9f407e02978ae2155b5960c60583 100644 (file)
@@ -259,7 +259,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 */