From c7f7d90b67224734c15252a013eb2b1d24d93e58 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Mon, 21 Oct 2013 15:48:54 +0200 Subject: [PATCH] xport should only return as much data as was requested --- 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 d9ebaa96..4ecee042 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -739,7 +739,7 @@ int rrd_xport_format_xmljson(int flags,stringbuffer_t *buffer,image_desc_t *im,t } addToBuffer(buffer,buf,0); /* iterate over data */ - for (time_t ti = start + step; ti <= end; ti += step) { + for (time_t ti = start + step; ti < end; ti += step) { if (timefmt) { struct tm loc; localtime_r(&ti,&loc); -- 2.47.3