aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.76k stars 549 forks source link

Subinterfaces cause network to not load #201

Open Guyverix opened 3 years ago

Guyverix commented 3 years ago

Describe the bug

When a sub-interface is defined such as lo:0 all of the network reporting breaks.

To Reproduce

sudo ifconfig lo:0 up start bashtop check error log sudo ifconfig lo:0 down start bashtop

Expected behavior

If a network interface is unparsable, simply show as UA, or ignore

Screenshots

[If applicable, add screenshots to help explain your problem.]

Info (please complete the following information):

Additional context

contents of $HOME/.config/bashtop/error.log New instance of bashtop version: 0.9.25 Pid: 32381 PSUTIL ERROR! Command: get_nics() 'lo:0' 12:21:34 PM ERROR: On line 1048 PSUTIL ERROR! Command: get_nics() 'lo:0' 12:22:05 PM ERROR: On line 1048 (MUTED!) PSUTIL ERROR! Command: get_nics() 'lo:0' PSUTIL ERROR! Command: get_nics() 'lo:0'

New instance of bashtop version: 0.9.25 Pid: 3124

(enable error-logging in "$HOME/.config/bashtop/bashtop.cfg" if missing)