Skip to content

Commit

Permalink
Enhance running handling
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 5f14320 commit 73583ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/emc/datadomain/snmp/mode/cleaning.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ sub manage_selection {
if ($self->{global}->{lastExecSeconds} == -1 || $self->{global}->{lastExecSeconds} > $lastExecSeconds) {
$self->{global}->{lastExecSeconds} = $lastExecSeconds;
}
}elsif($snmp_result->{$oid} =~ /Cleaning: phase (\d+) of (\d+) \(copy\)/){
$self->{global}->{lastExecHuman} = "running (phase $1 of $2 (copy))";
}elsif($snmp_result->{$oid} =~ /Cleaning: phase (\d+) of (\d+) \(([^)]+)\)/) {
$self->{global}->{lastExecHuman} = "running (phase $1 of $2 : $3)";
$self->{global}->{lastExecSeconds} = 0;
}
}
Expand Down

0 comments on commit 73583ab

Please sign in to comment.