]> granicus.if.org Git - sysstat/commitdiff
sadf: Remove sysdata-version from JSON output
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 29 Aug 2016 06:27:36 +0000 (08:27 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 29 Aug 2016 06:27:36 +0000 (08:27 +0200)
Remove sysdata-version field from JSON output. This field is relevant
only for XML output (it's the version of the DTD/XSD documents).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf_misc.c

index be3a26e8d67211e8c6e8abcf6334feaccd4b843d..97f34246cce10d2f2b2353e7b60d69bcedc4f665 100644 (file)
@@ -690,10 +690,7 @@ __printf_funct_t print_json_header(void *parm, int action, char *dfile,
        if (action & F_BEGIN) {
                xprintf(*tab, "{\"sysstat\": {");
 
-               xprintf(++(*tab), "\"sysdata-version\": %s,",
-                       XML_DTD_VERSION);
-
-               xprintf(*tab, "\"hosts\": [");
+               xprintf(++(*tab), "\"hosts\": [");
                xprintf(++(*tab), "{");
                xprintf(++(*tab), "\"nodename\": \"%s\",", file_hdr->sa_nodename);
                xprintf(*tab, "\"sysname\": \"%s\",", file_hdr->sa_sysname);