Diskmanage: fix incorrect variable usage
sysdir is a string, we wanted sysdata Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
ea928fd41a
commit
c5fa45a99f
@ -511,7 +511,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} || $sysdir->{model});
|
||||
my $wearval = get_wear_leveling_info($smartdata, $data->{model} || $sysdata->{model});
|
||||
$wearout = $wearval if $wearval;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user