The end of the export range should not be adjusted DOWN but UP to hit the next matchi...
[rrdtool.git] / src / rrd_xport.c
index b3cc970..5586281 100644 (file)
@@ -286,7 +286,7 @@ int rrd_xport_fn(
     free(step_list);
     
     *start =  im->start - im->start % (*step);
     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 */
     
 
     /* room for rearranged data */