mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
+ fix hyperv node-snapshot mode
This commit is contained in:
parent
5a86e6e85e
commit
5d2d83b69c
@ -118,7 +118,7 @@ sub manage_selection {
|
||||
my ($name, $status, $note, $content) = ($1, $2, $3, $4);
|
||||
my %chkpt = (backing => -1, snapshot => -1);
|
||||
while ($content =~ /\[checkpointCreationTime=\s*(.*?)\s*\]\[type=\s*(.*?)\s*\]/msig) {
|
||||
$chkpt{$2} = $1 if ($chkpt{$2} > $1);
|
||||
$chkpt{$2} = $1 if ($chkpt{$2} == -1 || $chkpt{$2} > $1);
|
||||
}
|
||||
next if ($chkpt{backing} == -1 && $chkpt{snapshot} == -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user