From: Tobias Oetiker Date: Wed, 25 Mar 2015 15:18:08 +0000 (+0100) Subject: exporting one row too many ... X-Git-Tag: v1.5.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d474d7bd0e14a28f0017d38e9e754ee688a32ce;p=thirdparty%2Frrdtool-1.x.git exporting one row too many ... --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 15cd0d2e..629b118e 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -743,7 +743,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; ti <= end; ti += step) { + for (time_t ti = start; ti < end; ti += step) { if (timefmt) { struct tm loc; localtime_r(&ti,&loc);