mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Merge pull request #1527 from siikamiika/network-current-iface-bandwidth
network: calculate bandwidth for current interface
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user