]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storage status: use SI units for usage for consitency with RRD chart
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 May 2021 16:15:05 +0000 (18:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 May 2021 16:15:05 +0000 (18:15 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/StatusView.js

index f34502184c8ab86e8bd49c73188d856f70f7fd5a..90631b0b675a14510d4a3b85c784719378efcc89 100644 (file)
@@ -56,6 +56,12 @@ Ext.define('PVE.storage.StatusView', {
            title: gettext('Usage'),
            valueField: 'used',
            maxField: 'total',
+           renderer: (val, max) => {
+               if (max === undefined) {
+                   return val;
+               }
+               return Proxmox.Utils.render_size_usage(val, max, true);
+           },
        },
     ],