Merge pull request #1527 from siikamiika/network-current-iface-bandwidth

network: calculate bandwidth for current interface
This commit is contained in:
Alex 2022-05-05 09:44:44 +02:00 committed by GitHub
commit 4592dd4a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ waybar::modules::Network::readBandwidthUsage() {
std::string ifacename;
iss >> ifacename; // ifacename contains "eth0:"
ifacename.pop_back(); // remove trailing ':'
if (!checkInterface(ifacename)) {
if (ifacename != ifname_) {
continue;
}