]> git.proxmox.com Git - pmg-gui.git/commitdiff
ui: node summary: use SI units for HD usage
authorChristian Ebner <c.ebner@proxmox.com>
Tue, 21 Nov 2023 11:37:31 +0000 (12:37 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 15 Dec 2023 14:57:19 +0000 (15:57 +0100)
SI units are used for storage size information, as typically used by
hard disk manufacturers.

Change the root filesystem usage values in the node summary to be
consistent

js/dashboard/NodeInfo.js

index 7952d036efd982d10636e8bc15910ee03349be2f..99eb4d3f16f07c0d9482cb9b36948febb6af2afd 100644 (file)
@@ -58,7 +58,7 @@ Ext.define('PMG.NodeInfoPanel', {
            title: gettext('HD space') + ' (root)',
            valueField: 'rootfs',
            maxField: 'rootfs',
-           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',