fix lvm storage status

This commit is contained in:
Dietmar Maurer
2015-09-11 12:13:00 +02:00
parent 4f6a99d8c7
commit 097a2b2fcf

View File

@ -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;