portmod: Fix syntax error in previous commit.

This commit is contained in:
Ben Greear
2018-07-18 18:08:45 -07:00
parent 1931e88f9e
commit a806535fc2

View File

@@ -388,10 +388,10 @@ elsif((defined $show_port) && ("$show_port" ne "")) {
my $i;
my @lines = ();
if ($stats_from_file ne "") {
@lines = get_stats_from_file($stats_from_file, 1, $card, $port_name);
@lines = split("\n", get_stats_from_file($stats_from_file, 1, $card, $port_name));
}
else {
@lines = split("\n", $utils->doAsyncCmd("nc_show_port 1 $card $port_name"));
@lines = split("\n", $utils->doAsyncCmd("nc_show_port 1 $card $port_name"));
}
# trick here is to place a ; before anything that looks like a keyword