From bc7e2f59ab8a27af9624bbee715d19be4f947513 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 10 Nov 2008 09:56:32 -0800 Subject: Show correct statistics on slaves Statistics for slave devices were not being read properly. --- scripts/vyatta-show-bonding.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/vyatta-show-bonding.pl b/scripts/vyatta-show-bonding.pl index c3f5b01..2b7c8d6 100755 --- a/scripts/vyatta-show-bonding.pl +++ b/scripts/vyatta-show-bonding.pl @@ -95,10 +95,10 @@ sub show { foreach my $slave (@slaves) { printf $format, ' ' . $slave, - get_sysfs_value( $intf, "statistics/rx_bytes" ), - get_sysfs_value( $intf, "statistics/rx_packets" ), - get_sysfs_value( $intf, "statistics/tx_bytes" ), - get_sysfs_value( $intf, "statistics/tx_packets" ); + get_sysfs_value( $slave, "statistics/rx_bytes" ), + get_sysfs_value( $slave, "statistics/rx_packets" ), + get_sysfs_value( $slave, "statistics/tx_bytes" ), + get_sysfs_value( $slave, "statistics/tx_packets" ); } } } -- cgit v1.2.3