From: Alexander Else Date: Tue, 6 May 2014 07:22:50 +0000 (+1000) Subject: Fix #463 - account for step in xport json X-Git-Tag: v1.5.0-rc1~107^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2681233d9a6d0ab6ad5cfd284b2dc9a3ee441210;p=thirdparty%2Frrdtool-1.x.git Fix #463 - account for step in xport json Final element check changed from end to end-step --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 57ed991f..57d5f47d 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -797,7 +797,7 @@ int rrd_xport_format_xmljson(int flags,stringbuffer_t *buffer,image_desc_t *im,t ptr++; } if (json){ - addToBuffer(buffer,(ti < end ? " ],\n" : " ]\n"),0); + addToBuffer(buffer,(ti < end-step ? " ],\n" : " ]\n"),0); } else { snprintf(buf,sizeof(buf),"\n", DATA_ROW_TAG);