Skip to content

Ignore virtual interfaces for network IO accounting #1739

@andree182

Description

@andree182

At least on linux, https://github.com/htop-dev/htop/blob/main/linux/Platform.c#L698 seems to sum all traffic on all interfaces.

However with containers this may lead to incorrect numbers. In my case with docker, a container is downloading something - the reported Rx rate looks okay, but I see double the Tx rate as well (seems like one tx from docker0, and then another from the veth* device).

If there'd be a (default "yes"?) option to ignore/filter out known virtual ethernet devices (docker., veth., perhaps others), that would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementExtension or improvement to existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions