Use only header "cpu-load" for both "sar -u" and "sar -u ALL"
statistics (header "cpu-load-all" is removed). This is what is
done in XML output. So do the same here for JSON output.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
struct stats_cpu *scc, *scp;
char cpuno[8];
- if (DISPLAY_CPU_DEF(a->opt_flags)) {
- xprintf(tab++, "\"cpu-load\": [");
- }
- else if (DISPLAY_CPU_ALL(a->opt_flags)) {
- xprintf(tab++, "\"cpu-load-all\": [");
- }
+ xprintf(tab++, "\"cpu-load\": [");
for (i = 0; (i < a->nr) && (i < a->bitmap->b_size + 1); i++) {