Code

The end of the export range should not be adjusted DOWN but UP to hit the next matchi...
[rrdtool-all.git] / program / 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 */