[pmg-devel] [PATCH pmg-gui] ui: node summary: use SI units for HD usage

Christian Ebner c.ebner at proxmox.com
Tue Nov 21 12:37:31 CET 2023


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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/dashboard/NodeInfo.js b/js/dashboard/NodeInfo.js
index 7952d03..99eb4d3 100644
--- a/js/dashboard/NodeInfo.js
+++ b/js/dashboard/NodeInfo.js
@@ -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',
-- 
2.39.2





More information about the pmg-devel mailing list