Skip to content

Commit

Permalink
Fix if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Dubrunfaut authored and Lucie Dubrunfaut committed Dec 12, 2024
1 parent e58da7b commit 5f14320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/emc/datadomain/snmp/mode/cleaning.pm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sub manage_selection {
}

# If there is a lastExecSeconds set (if above in the looop) and this is not a cleaning running (elsif above)
if ($self->{global}->{lastExecSeconds} != -1 && ($self->{global}->{lastExecSeconds} == 0 && $self->{global}->{lastExecHuman} eq "never")) {
if ($self->{global}->{lastExecSeconds} > 0 || ($self->{global}->{lastExecSeconds} = 0 && $self->{global}->{lastExecHuman} eq "never")) {
$self->{global}->{lastExecHuman} = centreon::plugins::misc::change_seconds(
value => $self->{global}->{lastExecSeconds}
);
Expand Down

0 comments on commit 5f14320

Please sign in to comment.