fix(plugin) purestorage pgroup undefined value

Close https://github.com/centreon/centreon-plugins/issues/1658
This commit is contained in:
Simon Bomm 2019-09-26 17:15:59 +02:00 committed by GitHub
parent b0a46b5dc9
commit 6443c4a6af

View File

@ -140,7 +140,7 @@ sub manage_selection {
$self->{pgroup}->{$pgroup_name} = {
display => $pgroup_name,
progress => $entry->{progress} * 100,
progress => defined($entry->{progress}) ? $entry->{progress} * 100 : 0.0,
physical_bytes_written => $entry->{physical_bytes_written},
data_transferred => $entry->{data_transferred},
creation_seconds => $creation_seconds,