From 2681233d9a6d0ab6ad5cfd284b2dc9a3ee441210 Mon Sep 17 00:00:00 2001 From: Alexander Else Date: Tue, 6 May 2014 17:22:50 +1000 Subject: [PATCH] Fix #463 - account for step in xport json Final element check changed from end to end-step --- 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 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); -- 2.47.2