提交 22db708d 编写于 作者: N nicolargo

KeyError: 'eth0' when interface is not connected #1348

上级 96a05bec
......@@ -108,7 +108,8 @@ class Plugin(GlancesPlugin):
network_new = netiocounters
for net in network_new:
# 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
try:
cumulative_rx = network_new[net].bytes_recv
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册