Merge commit 'mdkent/SIGAR-167'
This commit is contained in:
commit
64fd05c615
|
@ -42,8 +42,8 @@ iflist.each do |ifname|
|
||||||
" MTU:" + ifconfig.mtu.to_s +
|
" MTU:" + ifconfig.mtu.to_s +
|
||||||
" Metric:" + ifconfig.metric.to_s
|
" Metric:" + ifconfig.metric.to_s
|
||||||
|
|
||||||
|
if (!ifname.include?(":"))
|
||||||
ifstat = sigar.net_interface_stat(ifname)
|
ifstat = sigar.net_interface_stat(ifname)
|
||||||
|
|
||||||
puts "\t" +
|
puts "\t" +
|
||||||
"RX packets:" + ifstat.rx_packets.to_s +
|
"RX packets:" + ifstat.rx_packets.to_s +
|
||||||
" errors:" + ifstat.rx_errors.to_s +
|
" errors:" + ifstat.rx_errors.to_s +
|
||||||
|
@ -69,4 +69,5 @@ iflist.each do |ifname|
|
||||||
" " +
|
" " +
|
||||||
"TX bytes:" + tx_bytes.to_s +
|
"TX bytes:" + tx_bytes.to_s +
|
||||||
" (" + Sigar.format_size(tx_bytes) + ")" + "\n";
|
" (" + Sigar.format_size(tx_bytes) + ")" + "\n";
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue