]> granicus.if.org Git - sysstat/commitdiff
sadf: SVG: Remove unneeded test
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 28 May 2018 06:42:00 +0000 (08:42 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 28 May 2018 06:42:00 +0000 (08:42 +0200)
Only the relevant devices have been saved. So we don't need to check if
current device actually belongs to the list before displaying it.

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

index 798894110f39966dd7e643f31fd532361dad1b2b..40fb9019be0335b4eff26c3ae10fb1317e481836 100644 (file)
@@ -2247,13 +2247,6 @@ __print_funct_t svg_print_disk_stats(struct activity *a, int curr, int action, s
                        /* Get device name */
                        item_name = get_sa_devname(*(spmax + pos + 8), *(spmin + pos + 8), flags);
 
-                       if (dlst_dev_idx) {
-                               /* A list of devices has been entered on the command line */
-                               if (!search_sa_dlist(st_dev_list, dlst_dev_idx, item_name))
-                                       /* Device not found */
-                                       continue;
-                       }
-
                        draw_activity_graphs(a->g_nr, g_type,
                                             title, g_title, item_name, group,
                                             spmin + pos, spmax + pos, out + pos, outsize + pos,