ui: use base 10 (SI) for all storage related displays
matches what we do for (most) of such things in PVE since 7.0 there and also what the disk management gui shows, further disks are sold with SI units for their advertised capacity, so its more fitting there too. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f61d822efa
commit
8af1fa5477
|
@ -81,21 +81,21 @@ Ext.define('PBS.DatastoreStatistics', {
|
|||
dataIndex: 'total',
|
||||
sortable: true,
|
||||
width: 90,
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v),
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v, true),
|
||||
},
|
||||
{
|
||||
text: gettext('Used'),
|
||||
dataIndex: 'used',
|
||||
sortable: true,
|
||||
width: 90,
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v),
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v, true),
|
||||
},
|
||||
{
|
||||
text: gettext('Available'),
|
||||
dataIndex: 'avail',
|
||||
sortable: true,
|
||||
width: 90,
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v),
|
||||
renderer: v => v === undefined || v < 0 ? '-' : Proxmox.Utils.format_size(v, true),
|
||||
},
|
||||
{
|
||||
text: gettext('Usage %'),
|
||||
|
|
|
@ -54,8 +54,8 @@ Ext.define('PBS.datastore.DataStoreListSummary', {
|
|||
|
||||
let usage = statusData.used/statusData.total;
|
||||
let usagetext = Ext.String.format(gettext('{0} of {1}'),
|
||||
Proxmox.Utils.format_size(statusData.used),
|
||||
Proxmox.Utils.format_size(statusData.total),
|
||||
Proxmox.Utils.format_size(statusData.used, true),
|
||||
Proxmox.Utils.format_size(statusData.total, true),
|
||||
);
|
||||
|
||||
let usagePanel = me.lookup('usage');
|
||||
|
|
|
@ -69,7 +69,7 @@ Ext.define('PBS.DataStoreInfo', {
|
|||
let total = store.getById('total').data.value;
|
||||
let used = store.getById('used').data.value;
|
||||
|
||||
let usage = PBS.Utils.render_size_usage(used, total);
|
||||
let usage = Proxmox.Utils.render_size_usage(used, total, true);
|
||||
vm.set('usagetext', usage);
|
||||
vm.set('usage', used/total);
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ Ext.define('PBS.NodeInfoPanel', {
|
|||
title: gettext('HD space') + '(root)',
|
||||
valueField: 'root',
|
||||
maxField: 'root',
|
||||
renderer: Proxmox.Utils.render_node_size_usage,
|
||||
renderer: ({ used, total }) => Proxmox.Utils.render_size_usage(used, total, true),
|
||||
},
|
||||
{
|
||||
iconCls: 'pmx-icon-size fa fa-fw fa-refresh',
|
||||
|
|
Loading…
Reference in New Issue