Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.

Ignore bond as well as tun for network activity#95

Open
CosmicHorrorDev wants to merge 2 commits intocjbassi:masterfrom
CosmicHorrorDev:ignore-bond-for-net-stats
Open

Ignore bond as well as tun for network activity#95
CosmicHorrorDev wants to merge 2 commits intocjbassi:masterfrom
CosmicHorrorDev:ignore-bond-for-net-stats

Conversation

@CosmicHorrorDev
Copy link

Addresses: #92

The network graph already had logic to ignore just tun0. However, having multiple tuns or in the case of #92 having a bond will still cause the problem of counting for the virtual and physical network device. This change just changes the logic to ignore all tunnels and bonds.

Just as a note for future work it would be nice to have a way of detecting and filtering out virtual devices instead of dealing with all of these cases separately, but it looks like rust-psutil doesn't have that functionality yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant