root/foundation-apps/grosview-maxx/xosview-net.patch
| Revision 2, 3.2 KB (checked in by emasson, 3 years ago) |
|---|
-
xosview-1.8.2/Xdefaults
diff -ur /tmp/xosview-1.8.2/Xdefaults /home/gwolf/paquetes/xosview/xosview-1.8.2/Xdefaults
old new 137 137 xosview*netDecay: True 138 138 xosview*netGraph: True 139 139 xosview*netUsedFormat: autoscale 140 xosview*netIface: False 140 141 141 142 ! Linux-only resources: 142 143 -
xosview-1.8.2/Xdefaults.in
diff -ur /tmp/xosview-1.8.2/Xdefaults.in /home/gwolf/paquetes/xosview/xosview-1.8.2/Xdefaults.in
old new 137 137 xosview*netDecay: True 138 138 xosview*netGraph: True 139 139 xosview*netUsedFormat: autoscale 140 xosview*netIface: False 140 141 141 142 ! Linux-only resources: 142 143 -
xosview-1.8.2/linux/netmeter.cc
diff -ur /tmp/xosview-1.8.2/linux/netmeter.cc /home/gwolf/paquetes/xosview/xosview-1.8.2/linux/netmeter.cc
old new 119 119 useGraph_ = parent_->isResourceTrue( "netGraph" ); 120 120 dodecay_ = parent_->isResourceTrue( "netDecay" ); 121 121 SetUsedFormat (parent_->getResource("netUsedFormat")); 122 netIface_ = parent_->getResource( "netIface" ); 122 123 123 124 _ipsock = socket(AF_INET, SOCK_DGRAM, 0); 124 125 if (_ipsock == -1) { … … 171 172 } 172 173 else 173 174 { 175 std::string ifname; 174 176 ifs.ignore(1024, '\n'); 175 177 ifs.ignore(1024, '\n'); 176 178 177 179 while (ifs) 178 180 { 179 ifs.ignore(1024, ':'); 180 ifs >> str_in; 181 if (netIface_ == "False" ) 182 { 183 ifs.ignore(1024, ':'); 184 } 185 else 186 { 187 ifs.get(buf, 128, ':'); 188 ifname = buf; 189 ifs.ignore(1, ':'); 190 ifname.erase(0, ifname.find_first_not_of(" ") ); 191 if (ifname != netIface_) 192 { 193 ifs.ignore(1024,'\n'); 194 continue; 195 } 196 } 197 198 ifs >> str_in; 181 199 if (str_in == "No") 182 200 continue; 183 201 else -
xosview-1.8.2/linux/netmeter.h
diff -ur /tmp/xosview-1.8.2/linux/netmeter.h /home/gwolf/paquetes/xosview/xosview-1.8.2/linux/netmeter.h
old new 25 25 void checkResources( void ); 26 26 protected: 27 27 float maxpackets_; 28 std::string netIface_; 28 29 29 30 private: 30 31 int _ipsock; -
xosview-1.8.2/xosview.1
diff -ur /tmp/xosview-1.8.2/xosview.1 /home/gwolf/paquetes/xosview/xosview-1.8.2/xosview.1
old new 668 668 relative percentage of network usage (25% incomming, 75% outgoing). 669 669 .RE 670 670 671 xosview*netIface: \fIinterface\fP 672 .RS 673 If False, xosview will display the data received/transmitted by any of 674 the network interfaces. Otherwise, xosview will only display the data 675 received/transmitted by the specified network interface. 676 671 677 .\" net{In,Out}Color: 672 678 .cc net In incoming 673 679 .cc net Out outgoing
Note: See TracBrowser
for help on using the browser.
