From: Sebastien GODARD Date: Sun, 25 Jun 2017 07:31:35 +0000 (+0200) Subject: SVG: Fix graphs for swap space utilization statistics X-Git-Tag: v11.5.7~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f91decf2e751006b8eb2e48e81c666a709af76a4;p=sysstat SVG: Fix graphs for swap space utilization statistics 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 --- diff --git a/svg_stats.c b/svg_stats.c index 8b90384..5467645 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -1769,7 +1769,7 @@ __print_funct_t svg_print_memory_stats(struct activity *a, int curr, int action, 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); }