]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix JSON and JSONTIME export with gprints or rules 685/head
authorOlivier Doucet <webmaster@ajeux.com>
Fri, 6 Nov 2015 18:50:07 +0000 (19:50 +0100)
committerOlivier Doucet <webmaster@ajeux.com>
Fri, 6 Nov 2015 18:50:07 +0000 (19:50 +0100)
commitbe80cab93763f9608e7e6b425ec32097667a6fb3
treef7ba3d6c23f92ca314acfb7a1395b34207e435ce
parent61e2fe6a3090d4c1a08815e609fe9bf47cbe2ca7
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