]> granicus.if.org Git - sysstat/commitdiff
Fixed XML output for hugepages utilization statistics.
authorSebastien Godard <sysstat@orange.fr>
Sun, 19 Sep 2010 14:04:31 +0000 (16:04 +0200)
committerSebastien Godard <sysstat@orange.fr>
Sun, 19 Sep 2010 14:04:31 +0000 (16:04 +0200)
Indentation was wrong after displaying hugepages stats in XML format.

prf_stats.c

index 2964c30e9baceddbb2d78de740337bb8132de75b..4bcdeefee559c90be29f87cddcad1d9709841828 100644 (file)
@@ -2881,7 +2881,7 @@ __print_funct_t xml_print_memory_stats(struct activity *a, int curr, int tab,
                xprintf(tab, "<hugused>%lu</hugused>",
                        smc->tlhkb - smc->frhkb);
 
-               xprintf(tab, "<hugused-percent>%.2f</hugused-percent>",
+               xprintf(tab--, "<hugused-percent>%.2f</hugused-percent>",
                        smc->tlhkb ?
                        SP_VALUE(smc->frhkb, smc->tlhkb, smc->tlhkb) :
                        0.0);