diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 10b5737..41158f4 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -512,7 +512,7 @@ sub get_disks { if ($type eq 'ssd') { # if we have an ssd we try to get the wearout indicator my $wearval = get_wear_leveling_info($smartdata, $data->{model} || $sysdata->{model}); - $wearout = $wearval if $wearval; + $wearout = $wearval if defined($wearval); } }; }