From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: Christian Ebner <c.ebner@proxmox.com>
Cc: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] applied: [PATCH pmg-gui] ui: node summary: use SI units for HD usage
Date: Fri, 15 Dec 2023 16:29:31 +0100 [thread overview]
Message-ID: <ZXxw2web5ZeM7MOr@rosa.proxmox.com> (raw)
In-Reply-To: <20231121113731.194882-1-c.ebner@proxmox.com>
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@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
>
>
prev parent reply other threads:[~2023-12-15 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 11:37 [pmg-devel] " Christian Ebner
2023-12-15 15:29 ` Stoiko Ivanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZXxw2web5ZeM7MOr@rosa.proxmox.com \
--to=s.ivanov@proxmox.com \
--cc=c.ebner@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox