From 19379d5333db7d3912c3a2456ad3ae0ffbceabc8 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Mon, 18 Dec 2017 17:00:37 +0100 Subject: [PATCH] SVG: Don't compute number of SVG graphs for each activity We only need the total number of rows containing SVG views for all the activities, not a number for each of them. Signed-off-by: Sebastien GODARD --- sadf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sadf.c b/sadf.c index 39082d1..9af058e 100644 --- a/sadf.c +++ b/sadf.c @@ -69,8 +69,6 @@ struct file_header file_hdr; * This array must always be entirely filled (even with trailing zeros). */ unsigned int id_seq[NR_ACT]; -/* Total number of SVG graphs for each activity */ -int id_g_nr[NR_ACT]; /* Current record header */ struct record_header record_hdr[3]; @@ -477,9 +475,6 @@ int get_svg_graph_nr(int ifd, char *file, struct file_magic *file_magic, *views_per_row = act[p]->g_nr; } - if (n > id_g_nr[i]) { - id_g_nr[i] = n; - } new_tot_g_nr += n; } -- 2.40.0