Commit 08142b08 authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

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.
parent 5621a509
...@@ -273,10 +273,7 @@ sub update_storage_status { ...@@ -273,10 +273,7 @@ sub update_storage_status {
my $d = $info->{$storeid}; my $d = $info->{$storeid};
next if !$d->{active}; next if !$d->{active};
# everything not free is considered to be used my $data = "$ctime:$d->{total}:$d->{used}";
my $realused = $d->{total} - $d->{avail};
my $data = "$ctime:$d->{total}:$realused";
my $key = "pve2-storage/${nodename}/$storeid"; my $key = "pve2-storage/${nodename}/$storeid";
PVE::Cluster::broadcast_rrd($key, $data); PVE::Cluster::broadcast_rrd($key, $data);
......
...@@ -49,12 +49,7 @@ Ext.define('PVE.storage.StatusView', { ...@@ -49,12 +49,7 @@ Ext.define('PVE.storage.StatusView', {
used: { used: {
header: gettext('Used'), header: gettext('Used'),
required: true, required: true,
renderer: function(value) { renderer: PVE.Utils.render_size
// 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);
}
}, },
avail: { avail: {
header: gettext('Avail'), header: gettext('Avail'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment