]> granicus.if.org Git - sysstat/commitdiff
A_IRQ: Update cpu attribute in XML output
authorSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 8 Feb 2022 13:50:31 +0000 (14:50 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 8 Feb 2022 13:50:31 +0000 (14:50 +0100)
cpu attribute's possible values are "all" or a value like "0", "1", etc.
to be consistent with other activities XML output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
xml/sysstat-3.10.dtd [moved from xml/sysstat-3.9.dtd with 100% similarity]
xml_stats.c

similarity index 100%
rename from xml/sysstat-3.9.dtd
rename to xml/sysstat-3.10.dtd
index 8855eeb561d957a456da9726c07822fbfd883a85..2480fdda2524e99014e40375b8ce4378d1016eff 100644 (file)
@@ -364,7 +364,7 @@ __print_funct_t xml_print_irq_stats(struct activity *a, int curr, int tab,
                                        S_VALUE(stp_cpu_irq->irq_nr, stc_cpu_irq->irq_nr, itv));
                        }
                        else {
-                               xprintf(tab, "<irq intr=\"%s\" cpu=\"CPU%d\" value=\"%.2f\"/>",
+                               xprintf(tab, "<irq intr=\"%s\" cpu=\"%d\" value=\"%.2f\"/>",
                                        stc_cpuall_irq->irq_name,
                                        c - 1,
                                        S_VALUE(stp_cpu_irq->irq_nr, stc_cpu_irq->irq_nr, itv));