for (i = 0; i < a->nr[curr]; i++) {
sndc = (struct stats_net_dev *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlist_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_dev_list, dlist_idx, sndc->interface,
+ A_NET_DEV))
+ /* Device not found */
+ continue;
+ }
+
if (!WANT_SINCE_BOOT(flags)) {
j = check_net_dev_reg(a, curr, prev, i);
}
if (DISPLAY_ZERO_OMIT(flags) && !memcmp(sndp, sndc, STATS_NET_DEV_SIZE2CMP))
continue;
- if (dlist_idx) {
- /* A list of devices has been entered on the command line */
- if (!search_sa_dlist(st_dev_list, dlist_idx, sndc->interface,
- A_NET_DEV))
- /* Device not found */
- continue;
- }
-
printf("%-11s", timestamp[curr]);
if (!DISPLAY_HUMAN_READ(flags)) {
for (i = 0; i < a->nr[curr]; i++) {
snedc = (struct stats_net_edev *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlist_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_dev_list, dlist_idx, snedc->interface,
+ A_NET_DEV))
+ /* Device not found */
+ continue;
+ }
+
if (!WANT_SINCE_BOOT(flags)) {
j = check_net_edev_reg(a, curr, prev, i);
}
if (DISPLAY_ZERO_OMIT(flags) && !memcmp(snedp, snedc, STATS_NET_EDEV_SIZE2CMP))
continue;
- if (dlist_idx) {
- /* A list of devices has been entered on the command line */
- if (!search_sa_dlist(st_dev_list, dlist_idx, snedc->interface,
- A_NET_DEV))
- /* Device not found */
- continue;
- }
-
printf("%-11s", timestamp[curr]);
if (!DISPLAY_HUMAN_READ(flags)) {