]> granicus.if.org Git - sysstat/commitdiff
Update XML output for FC hosts statistics
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2015 13:33:51 +0000 (15:33 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2015 13:33:51 +0000 (15:33 +0200)
Rename tags used in XML output for FC hosts to be consistent with names
displayed by sar.
Add tag per="second" in XML output.

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

index d6db67db4da09429f00002b93b86c3b32d9f850d..99c8f83d816ec377dc2ae3d855c70d6f4432dea7 100644 (file)
@@ -2076,8 +2076,7 @@ __print_funct_t xml_print_fchost_stats(struct activity *a, int curr, int tab,
        int i;
        struct stats_fchost *sfcc, *sfcp;
 
-       xprintf(tab, "<fchosts>");
-       tab++;
+       xprintf(tab++, "<fchosts per=\"second\">");
 
        for (i = 0; i < a->nr; i++) {
 
@@ -2089,10 +2088,10 @@ __print_funct_t xml_print_fchost_stats(struct activity *a, int curr, int tab,
                        break;
 
                xprintf(tab, "<fchost name=\"%s\" "
-                       "rxframes=\"%.2f\" "
-                       "txframes=\"%.2f\" "
-                       "rxwords=\"%.2f\" "
-                       "txwords=\"%.2f\"/>",
+                       "fch_rxf=\"%.2f\" "
+                       "fch_txf=\"%.2f\" "
+                       "fch_rxw=\"%.2f\" "
+                       "fch_txw=\"%.2f\"/>",
                        sfcc->fchost_name,
                        S_VALUE(sfcp->f_rxframes, sfcc->f_rxframes, itv),
                        S_VALUE(sfcp->f_txframes, sfcc->f_txframes, itv),