From: oetiker Date: Mon, 11 Jan 2010 08:11:19 +0000 (+0000) Subject: The end of the export range should not be adjusted DOWN but UP to hit the next matchi... X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=3bb4c112bfca2d357cd0d066bee681025a490d49;hp=e8967ac2a3e80b8c1437822cb3bc958799c1899f The end of the export range should not be adjusted DOWN but UP to hit the next matching step interval or the response will be one row short. Thanks swami for the bugreport. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index b3cc970..5586281 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -286,7 +286,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 */