summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-interfaces.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-02-20 11:54:46 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-02-20 11:54:46 -0800
commitcf89dba5013c3512e77d49e98f13d7ca5a8a9dcb (patch)
tree14692f482cf367db3a6ed314451db7b89219e802 /scripts/vyatta-show-interfaces.pl
parentced691965567c8e995f92bd15d4ca0bb26fdcbd5 (diff)
downloadvyatta-op-cf89dba5013c3512e77d49e98f13d7ca5a8a9dcb.tar.gz
vyatta-op-cf89dba5013c3512e77d49e98f13d7ca5a8a9dcb.zip
Change printf to use "u" instead of "d". Still need to handle 32 bit counter roll.
Diffstat (limited to 'scripts/vyatta-show-interfaces.pl')
-rw-r--r--scripts/vyatta-show-interfaces.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index cd90104..6418efa 100644
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -243,7 +243,7 @@ sub run_show_intf {
# todo: handle counter wrap
printf(" %10s %10s %10s %10s %10s %10s\n", "RX: bytes", "packets",
"errors", "dropped", "overrun", "mcast");
- printf(" %10d %10d %10d %10d %10d %10d\n",
+ printf(" %10u %10u %10u %10d %10u %10u\n",
$stats{'rx_bytes'} - $clear{'rx_bytes'},
$stats{'rx_packets'} - $clear{'rx_packets'},
$stats{'rx_errors'} - $clear{'rx_errors'}, ,
@@ -252,7 +252,7 @@ sub run_show_intf {
$stats{'multicast'} - $clear{'multicast'});
printf(" %10s %10s %10s %10s %10s %10s\n", "TX: bytes", "packets",
"errors", "dropped", "carrier", "collisions");
- printf(" %10d %10d %10d %10d %10d %10d\n\n",
+ printf(" %10u %10u %10u %10u %10u %10u\n\n",
$stats{'tx_bytes'} - $clear{'tx_bytes'},
$stats{'tx_packets'} - $clear{'tx_packets'},
$stats{'tx_errors'} - $clear{'tx_errors'},