From: Tobias Oetiker Date: Mon, 21 Oct 2013 13:48:54 +0000 (+0200) Subject: xport should only return as much data as was requested X-Git-Tag: v1.5.0-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f7d90b67224734c15252a013eb2b1d24d93e58;p=thirdparty%2Frrdtool-1.x.git xport should only return as much data as was requested --- 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);