mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 03:58:26 +00:00
correct node free calculation
avail - used is wrong total - used = free Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a9a4694475
commit
3d0fcc467a
@ -289,7 +289,7 @@ __PACKAGE__->register_method({
|
|||||||
total => $dinfo->{blocks},
|
total => $dinfo->{blocks},
|
||||||
avail => $dinfo->{bavail},
|
avail => $dinfo->{bavail},
|
||||||
used => $dinfo->{used},
|
used => $dinfo->{used},
|
||||||
free => $dinfo->{bavail} - $dinfo->{used},
|
free => $dinfo->{blocks} - $dinfo->{used},
|
||||||
};
|
};
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
Loading…
Reference in New Issue
Block a user