From 097a2b2fcf73fc32e114b49802db703c743c90d8 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 11 Sep 2015 12:13:00 +0200 Subject: [PATCH] fix lvm storage status --- PVE/Storage/LVMPlugin.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index c02fe59..87945a8 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -387,12 +387,8 @@ sub status { my $vgname = $scfg->{vgname}; - my $total = 0; - my $free = 0; - my $used = 0; - - if (my $info = $cache->{vgs}->{$vgname}) { - return ($info->{size}, $info->{free}, $total - $free, 1); + if (my $info = $cache->{vgs}->{$vgname}) { + return ($info->{size}, $info->{free}, $info->{size} - $info->{free}, 1); } return undef; -- 2.39.2