diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-23 15:53:19 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-23 15:53:19 -0500 |
commit | 7b29258830a4c5c81c22f32611b2630d535a31e5 (patch) | |
tree | 6461fb4136a5b20cc253a26b8c92b7fe0d0b3c00 /scripts | |
parent | 7ea8dd992e3b03aede386c78c4ad8bfb2fa90c9f (diff) | |
download | vyatta-op-7b29258830a4c5c81c22f32611b2630d535a31e5.tar.gz vyatta-op-7b29258830a4c5c81c22f32611b2630d535a31e5.zip |
Adjust spacing on Interface column
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-show-interfaces.pl | 6 |
1 files changed, 3 insertions, 3 deletions
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, "---------","----------","---","-----------"); |