summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-bonding.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-10 09:56:32 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-10 09:56:32 -0800
commitbc7e2f59ab8a27af9624bbee715d19be4f947513 (patch)
treea7491142752541bb06cfa1b860c07ed72a0acb07 /scripts/vyatta-show-bonding.pl
parent47a84e37613d6441c3460fd4919b59b420d4f1ec (diff)
downloadvyatta-op-bc7e2f59ab8a27af9624bbee715d19be4f947513.tar.gz
vyatta-op-bc7e2f59ab8a27af9624bbee715d19be4f947513.zip
Show correct statistics on slaves
Statistics for slave devices were not being read properly.
Diffstat (limited to 'scripts/vyatta-show-bonding.pl')
-rwxr-xr-xscripts/vyatta-show-bonding.pl8
1 files 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" );
}
}
}