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>
int i;
struct stats_fchost *sfcc, *sfcp;
- xprintf(tab, "<fchosts>");
- tab++;
+ xprintf(tab++, "<fchosts per=\"second\">");
for (i = 0; i < a->nr; i++) {
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),