mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
network: calculate bandwidth for current interface
This commit is contained in:
parent
6184e43c84
commit
7231c47244
@ -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…
x
Reference in New Issue
Block a user