]> granicus.if.org Git - sysstat/commit
sadf: SVG: Display graphs for swap utilization in packed mode
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 15 Jun 2018 14:11:36 +0000 (16:11 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 15 Jun 2018 14:11:36 +0000 (16:11 +0200)
commit7bf23fadefaf25ff01cfb37e3fae2b7516350f67
treeae56a650abb8a2d5916be2a78b00fdde85e8851a
parentdc643a6d9b8fdcffe402f935c016e654d6b1e191
sadf: SVG: Display graphs for swap utilization in packed mode

When both memory and swap utilization were selected, graphs for swap
utilization weren't displayed by sadf if option "packed" had been
entered, e.g.:

$ sadf -g -O packed -- -rS > output.svg

This was because SVG canvas height was not big enough. Indeed,
sadf assumed that each activity only needed one row in "packed" mode,
which is wrong for A_MEMORY activity (which requires two rows: One for
memory utilization and one for swap utilization).
This patch fixes the problem.

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