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

Stoiko Ivanov s.ivanov at proxmox.com
Fri Dec 15 16:29:31 CET 2023


applied the patch - Thanks!

On Tue, Nov 21, 2023 at 12:37:31PM +0100, Christian Ebner wrote:
> 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
> 
> 
> 
> _______________________________________________
> pmg-devel mailing list
> pmg-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
> 
> 




More information about the pmg-devel mailing list