From ac039bbeff070232c93362529f6442802e19aea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Wed, 9 Jul 2014 16:53:25 +0200 Subject: [PATCH] refs #5673 delete a parenthesis --- hardware/ups/eaton/mode/outlet.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/ups/eaton/mode/outlet.pm b/hardware/ups/eaton/mode/outlet.pm index 214f5f6f5..a6ce14343 100644 --- a/hardware/ups/eaton/mode/outlet.pm +++ b/hardware/ups/eaton/mode/outlet.pm @@ -168,7 +168,7 @@ sub run { my $str_output = "Outlet '$instance_output' "; my $str_append = ''; foreach (keys %{$maps_counters}) { - next if (!defined($self->{counters_value}->{$instance}->{$_})) || $self->{counters_value}->{$instance}->{$_} == 0); + next if (!defined($self->{counters_value}->{$instance}->{$_}) || $self->{counters_value}->{$instance}->{$_} == 0); $str_output .= $str_append . sprintf($maps_counters->{$_}->{output_msg}, $self->{counters_value}->{$instance}->{$_} * $maps_counters->{$_}->{factor}); $str_append = ', ';