in the pvesm and pvesh we are giving the correct size of the used space from a disk.
this change make the output of Gui and CLI consistent.
my $d = $info->{$storeid};
next if !$d->{active};
- # everything not free is considered to be used
- my $realused = $d->{total} - $d->{avail};
-
- my $data = "$ctime:$d->{total}:$realused";
+ my $data = "$ctime:$d->{total}:$d->{used}";
my $key = "pve2-storage/${nodename}/$storeid";
PVE::Cluster::broadcast_rrd($key, $data);
used: {
header: gettext('Used'),
required: true,
- renderer: function(value) {
- // do not confuse users with filesystem details
- var total = me.getObjectValue('total', 0);
- var avail = me.getObjectValue('avail', 0);
- return PVE.Utils.render_size(total - avail);
- }
+ renderer: PVE.Utils.render_size
},
avail: {
header: gettext('Avail'),