diff --git a/src/storage/emc/datadomain/snmp/mode/cleaning.pm b/src/storage/emc/datadomain/snmp/mode/cleaning.pm index 87e6c606cd..69085b9f8d 100644 --- a/src/storage/emc/datadomain/snmp/mode/cleaning.pm +++ b/src/storage/emc/datadomain/snmp/mode/cleaning.pm @@ -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} );