From 7b29258830a4c5c81c22f32611b2630d535a31e5 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 23 Jun 2011 15:53:19 -0500 Subject: Adjust spacing on Interface column --- scripts/vyatta-show-interfaces.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl index 6e2e550..be243a1 100755 --- a/scripts/vyatta-show-interfaces.pl +++ b/scripts/vyatta-show-interfaces.pl @@ -246,7 +246,7 @@ sub conv_descriptions { my @descriptions; my $line = ''; foreach my $elem (split(' ', $description)){ - if ((length($line) + length($elem)) >= 30){ + if ((length($line) + length($elem)) >= 29){ push(@descriptions, $line); $line = "$elem "; } else { @@ -259,8 +259,8 @@ sub conv_descriptions { sub run_show_intf_brief { my @intfs = @_; - my $format = "%-11s %-33s %-4s %-29s\n"; - my $format2 = "%-11s %-33s\n"; + my $format = "%-12s %-33s %-4s %-28s\n"; + my $format2 = "%-12s %-33s\n"; print "Codes: S - State, L - Link, U - Up, D - Down, A - Admin Down\n"; printf($format, "Interface","IP Address","S/L","Description"); printf($format, "---------","----------","---","-----------"); -- cgit v1.2.3