]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
update tests including verification of timestamp alignement
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 3 Jan 2019 12:02:14 +0000 (13:02 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 3 Jan 2019 12:59:39 +0000 (13:59 +0100)
src/rrd_xport.c

index 006fbff6d58c784751612bc27cdadc55439c2f62..85c00536494ed72a2a7ca87dc97a89811ddde3f2 100644 (file)
@@ -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),"</%s>\n", DATA_ROW_TAG);