mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-01 05:54:46 +03:00
wMerge branch 'issue1348' into develop
This commit is contained in:
commit
0575f1cbd5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user