fix bug #682: change at the Gui the used disk size.
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.
This commit is contained in:
committed by
Dietmar Maurer
parent
957a59b308
commit
4905626e31
@ -273,10 +273,7 @@ sub update_storage_status {
|
||||
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);
|
||||
|
@ -49,12 +49,7 @@ Ext.define('PVE.storage.StatusView', {
|
||||
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'),
|
||||
|
Reference in New Issue
Block a user