From 450509ce04ade024700ca297743c37ca0b10dd72 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 11 Mar 2016 11:11:37 +0100 Subject: [PATCH] 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 --- svg_stats.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.40.0