From: Sebastien GODARD Date: Fri, 11 Mar 2016 10:11:37 +0000 (+0100) Subject: SVG: Update SVG output for swap statistics X-Git-Tag: v11.3.2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=450509ce04ade024700ca297743c37ca0b10dd72;p=sysstat SVG: Update SVG output for swap statistics This patch updates SVG code used to draw graphs for swap statistics to keep in sync with current SVG core functions. Signed-off-by: Sebastien GODARD --- diff --git a/svg_stats.c b/svg_stats.c index f5cc6f1..b01e5ae 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -660,23 +660,22 @@ __print_funct_t svg_print_swap_stats(struct activity *a, int curr, int action, s /* pswpin/s */ lnappend(record_hdr->ust_time - svg_p->record_hdr->ust_time, S_VALUE(ssp->pswpin, ssc->pswpin, itv), - out, outsize, svg_p->restart); + out, outsize, svg_p->restart, svg_p->dt, SVG_LINE_GRAPH); /* pswpout/s */ lnappend(record_hdr->ust_time - svg_p->record_hdr->ust_time, S_VALUE(ssp->pswpout, ssc->pswpout, itv), - out + 1, outsize + 1, svg_p->restart); + out + 1, outsize + 1, svg_p->restart, svg_p->dt, SVG_LINE_GRAPH); } if (action & F_END) { - draw_activity_graphs(a, title, g_title, NULL, group, spmin, spmax, - out, outsize, svg_p, record_hdr); + draw_activity_graphs(a->g_nr, SVG_LINE_GRAPH, title, g_title, NULL, group, + spmin, spmax, out, outsize, svg_p, record_hdr); /* Free remaining structures */ free_graphs(out, outsize, spmin, spmax); } } - /* *************************************************************************** * Display paging statistics in SVG