if wearout is 0 we showed 'N/A' instead of 100%
(wearout is really the 'life left' value)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit
9250ddfe3ac3b85bec54b321d1f4a5b641a64ed3)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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);
}
};
}