sysdir is a string, we wanted sysdata Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- PVE/Diskmanage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index fbb0341..10b5737 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -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; } }; -- 2.11.0 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel