btop icon indicating copy to clipboard operation
btop copied to clipboard

btop shows 0 network activity when launched in a network namespace.

Open voidastro4 opened this issue 1 year ago • 0 comments

When launching btop in a separate network namespace (ex. name physical) which contains the wlan0 interface over which all traffic flows it correctly auto selects wlan0 but shows 0 activity forevermore.

btop is not the only application that suffers from this, gnome-system-monitor is similarly afflicted. It is however able to display some errors:

glibtop(c=26422): [WARNING] Failed to open "/sys/class/net/wlan0/statistics/rx_packets": No such file or directory
glibtop(c=26422): [WARNING] Failed to open "/sys/class/net/wlan0/statistics/tx_packets": No such file or directory
glibtop(c=26422): [WARNING] Failed to open "/sys/class/net/wlan0/statistics/rx_bytes": No such file or directory
glibtop(c=26422): [WARNING] Failed to open "/sys/class/net/wlan0/statistics/tx_bytes": No such file or directory

An application that apparently has no problems with this whatsoever is bottom: https://github.com/ClementTsang/bottom

voidastro4 avatar May 30 '24 19:05 voidastro4