From c25d150cd48c53ef9a043bcfb07a85250cd94adc Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 3 Jan 2019 13:02:14 +0100 Subject: [PATCH] update tests including verification of timestamp alignement --- 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 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); -- 2.47.2