From: Tobias Oetiker Date: Thu, 3 Jan 2019 12:02:14 +0000 (+0100) Subject: update tests including verification of timestamp alignement X-Git-Tag: v1.7.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c25d150cd48c53ef9a043bcfb07a85250cd94adc;p=thirdparty%2Frrdtool-1.x.git update tests including verification of timestamp alignement --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 006fbff6..85c00536 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -792,7 +792,7 @@ static int rrd_xport_format_xmljson(int flags,stringbuffer_t *buffer,image_desc_ ptr++; } if (json){ - addToBuffer(buffer,(ti < end-(time_t)step ? " ],\n" : " ]\n"),0); + addToBuffer(buffer,(ti <= end-(time_t)step ? " ],\n" : " ]\n"),0); } else { snprintf(buf,sizeof(buf),"\n", DATA_ROW_TAG);