From 48c03db0c876e30713e17696d54e40765cb953ae Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 21 Apr 2011 14:23:37 -0700 Subject: Fix error in show queuing at higher rates Bug 7016 If rate is over 1M then tc command will output with suffix (ie 800K). This breaks the printf expecting numeric value. Since suffix is convient anyway, just print as string. --- scripts/vyatta-show-queueing.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-show-queueing.pl b/scripts/vyatta-show-queueing.pl index 9d6caa6..4178c31 100755 --- a/scripts/vyatta-show-queueing.pl +++ b/scripts/vyatta-show-queueing.pl @@ -307,7 +307,7 @@ sub print_info { for (@fields) { my $val = $info->{$_}; if (defined($val)) { - printf " %8d", $val; + printf ' %8s', $val; } else { print ' '; } -- cgit v1.2.3