Skip to content

netspeed: avoid glibtop warnings for non-existent network devices#689

Merged
vkareh merged 1 commit into
masterfrom
netspeed-missing-device-warnings
May 27, 2026
Merged

netspeed: avoid glibtop warnings for non-existent network devices#689
vkareh merged 1 commit into
masterfrom
netspeed-missing-device-warnings

Conversation

@vkareh
Copy link
Copy Markdown
Member

@vkareh vkareh commented Mar 11, 2026

When a network interface is disabled at the kernel level, the applet tries to read from a device that no longer exist, generating continuous warning messages in syslog.

Check if the device exists before calling glibtop_get_netload in both is_dummy_device and get_device_info. When the device doesn't exist, get_device_info returns a non-running device info, allowing the existing auto-change logic to find an active device.

Fixes #688

@vkareh vkareh requested a review from a team March 11, 2026 21:08
When a network interface is disabled at the kernel level, the applet
tries to read from a device that no longer exist, generating continuous
warning messages in syslog.

Check if the device exists before calling glibtop_get_netload in both
is_dummy_device and get_device_info. When the device doesn't exist,
get_device_info returns a non-running device info, allowing the existing
auto-change logic to find an active device.

Fixes #688
@vkareh vkareh force-pushed the netspeed-missing-device-warnings branch from 5cd424c to 2be3597 Compare March 17, 2026 15:40
Copy link
Copy Markdown
Member

@mbkma mbkma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good defensive fix. Checking that the interface still exists before asking glibtop for netload data should avoid the warning spam when a device disappears, and falling back to the non-running path keeps the auto-change logic working the way it already does.

@vkareh vkareh merged commit bdf6747 into master May 27, 2026
6 checks passed
@vkareh vkareh deleted the netspeed-missing-device-warnings branch May 27, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mate-netspeed-applet, the disaster continues...

2 participants