]> granicus.if.org Git - sysstat/commitdiff
SVG: Update SVG output for swap statistics
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 11 Mar 2016 10:11:37 +0000 (11:11 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 11 Mar 2016 10:11:37 +0000 (11:11 +0100)
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 <sysstat@users.noreply.github.com>
svg_stats.c

index f5cc6f1fc357f15170d3fa57cee311e4babf2fab..b01e5ae4c3955eaf237d92023df100d9470a3245 100644 (file)
@@ -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