From a806535fc2de83fefd1ca313fd9deffe33ee340f Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Wed, 18 Jul 2018 18:08:45 -0700 Subject: [PATCH] portmod: Fix syntax error in previous commit. --- lf_portmod.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lf_portmod.pl b/lf_portmod.pl index 1406e883..4782364c 100755 --- a/lf_portmod.pl +++ b/lf_portmod.pl @@ -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