[pve-devel] [PATCH pve-manager] ui: node summary: use SI units for HD usage

Philipp Hufnagl p.hufnagl at proxmox.com
Tue Nov 21 10:58:04 CET 2023


On 11/21/23 10:00, 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.
> 
> Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
> ---
>  www/manager6/node/StatusView.js | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/www/manager6/node/StatusView.js b/www/manager6/node/StatusView.js
> index d34724f7..a6975b6e 100644
> --- a/www/manager6/node/StatusView.js
> +++ b/www/manager6/node/StatusView.js
> @@ -72,7 +72,9 @@ Ext.define('PVE.node.StatusView', {
>  	    title: '/ ' + gettext('HD space'),
>  	    valueField: 'rootfs',
>  	    maxField: 'rootfs',
> -	    renderer: Proxmox.Utils.render_node_size_usage,
> +	    renderer: function(record) {
> +		return Proxmox.Utils.render_size_usage(record.used, record.total, true);
> +	    },
>  	},
>  	{
>  	    iconCls: 'fa fa-fw fa-refresh',


LGTM

Tested-by: Philipp Hufnagl <p.hufnagl at proxmox.com>
Reviewed-by: Philipp Hufnagl <p.hufangl at proxmox.com>






More information about the pve-devel mailing list