From 0caf1706f782c1d548719ca8d17ff4885da33866 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 11 Jan 2010 08:11:19 +0000 Subject: [PATCH] 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/branches/1.3/program@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_xport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 80e40c5..e544b7d 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -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 */ -- 2.30.2