]> granicus.if.org Git - sysstat/commitdiff
SVG: Don't compute number of SVG graphs for each activity
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 18 Dec 2017 16:00:37 +0000 (17:00 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 18 Dec 2017 16:00:37 +0000 (17:00 +0100)
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 <sysstat@users.noreply.github.com>
sadf.c

diff --git a/sadf.c b/sadf.c
index 39082d19c6f1cb3afb893c92caa3c300a9a2435e..9af058eb61fe6cb168f0dbe85aa41e779fd70043 100644 (file)
--- 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;
                }