]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Diskmanage.pm
Diskmanage: correctly add wearout value of 0
[pve-storage.git] / PVE / Diskmanage.pm
index 10b5737aaba2fceb4735c081c1ad94124e0a1463..41158f4843df2e7be5e3a967feabd0ac0179e643 100644 (file)
@@ -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);
                }
            };
        }