]> granicus.if.org Git - sysstat/commitdiff
sadf: Get rid of id_g_nr variable
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 18 Dec 2017 18:10:09 +0000 (19:10 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 18 Dec 2017 18:10:09 +0000 (19:10 +0100)
Previous commit didn't completely remove reference to id_g_nr variable.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.c

diff --git a/sadf.c b/sadf.c
index 9af058eb61fe6cb168f0dbe85aa41e779fd70043..ddc4f0c292a679872ef3d1032944b75f57922b4c 100644 (file)
--- a/sadf.c
+++ b/sadf.c
@@ -432,11 +432,6 @@ int get_svg_graph_nr(int ifd, char *file, struct file_magic *file_magic,
                exit(2);
        }
 
-       /* Init total number of views for each activity */
-       for (i = 0; i < NR_ACT; i++) {
-               id_g_nr[i] = 0;
-       }
-
        /* Look for the first record that will be displayed */
        do {
                eosaf = read_next_sample(ifd, IGNORE_RESTART | IGNORE_COMMENT | SET_TIMESTAMPS,