Commit
8b71682 added a new metric to sar's memory report (available free
memory). This new metric caused a shift in the array containing data to
be drawn that wasn't properly taken into account (see commit
f90adb6).
As a consequence graphs for swap space utilisation statistics (those
corresponding to sar -S output) were wrong.
This patch fixes the problem by using the right position in data array.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
if (DISPLAY_SWAP(a->opt_flags)) {
draw_activity_graphs(3, g_type2, title2, g_title2, NULL, group2,
- spmin + 15, spmax + 15, out + 15, outsize + 15,
+ spmin + 16, spmax + 16, out + 16, outsize + 16,
svg_p, record_hdr);
}