]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix JSON and JSONTIME export with gprints or rules
authorOlivier Doucet <webmaster@ajeux.com>
Fri, 6 Nov 2015 18:50:07 +0000 (19:50 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 10 Nov 2015 16:07:36 +0000 (17:07 +0100)
commit95727808ea3f867fbd03c8833d6b136d51c722f4
tree8ce432e274db49eee65c60c694c0399631f2202e
parent9dac2aa1d0002b76eb6ee2ffb4bad18b101f9c07
Fix JSON and JSONTIME export with gprints or rules

When you have gprints or rules, json is not formated correctly : a comma is inserted after each block, making two mistakes :
- there is no comma between "legend" and "gprints" block
- there is a trailing comma in "meta" block

I decided to rewrite this part and add the comma before each block, so this works in all cases : when you don't have any block, only one of them or both.
src/rrd_xport.c