Merge pull request #1527 from siikamiika/network-current-iface-bandwidth
network: calculate bandwidth for current interfacepull/1551/head
commit
4592dd4a6c
|
@ -42,7 +42,7 @@ waybar::modules::Network::readBandwidthUsage() {
|
||||||
std::string ifacename;
|
std::string ifacename;
|
||||||
iss >> ifacename; // ifacename contains "eth0:"
|
iss >> ifacename; // ifacename contains "eth0:"
|
||||||
ifacename.pop_back(); // remove trailing ':'
|
ifacename.pop_back(); // remove trailing ':'
|
||||||
if (!checkInterface(ifacename)) {
|
if (ifacename != ifname_) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue