sysdir is a string, we wanted sysdata
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit
c5fa45a99fa1d7ba792864b6dbb0033fcfd115ef)
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} || $sysdir->{model});
+ my $wearval = get_wear_leveling_info($smartdata, $data->{model} || $sysdata->{model});
$wearout = $wearval if $wearval;
}
};