Merge commit 'mdkent/SIGAR-167'

This commit is contained in:
Doug MacEachern 2009-07-29 15:45:21 -07:00
commit 64fd05c615
1 changed files with 24 additions and 23 deletions

View File

@ -42,8 +42,8 @@ iflist.each do |ifname|
" MTU:" + ifconfig.mtu.to_s +
" Metric:" + ifconfig.metric.to_s
if (!ifname.include?(":"))
ifstat = sigar.net_interface_stat(ifname)
puts "\t" +
"RX packets:" + ifstat.rx_packets.to_s +
" errors:" + ifstat.rx_errors.to_s +
@ -69,4 +69,5 @@ iflist.each do |ifname|
" " +
"TX bytes:" + tx_bytes.to_s +
" (" + Sigar.format_size(tx_bytes) + ")" + "\n";
end
end