wMerge branch 'issue1348' into develop

This commit is contained in:
nicolargo 2018-11-06 21:09:09 +01:00
commit 0575f1cbd5

View File

@ -108,7 +108,8 @@ class Plugin(GlancesPlugin):
network_new = netiocounters network_new = netiocounters
for net in network_new: for net in network_new:
# Do not take hidden interface into account # Do not take hidden interface into account
if self.is_hide(net): # or KeyError: 'eth0' when interface is not connected #1348
if self.is_hide(net) or net not in netstatus:
continue continue
try: try:
cumulative_rx = network_new[net].bytes_recv cumulative_rx = network_new[net].bytes_recv