From: Michal Fox <me@dualfroz.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager 0/2] ui: fix memory usage percentage above 100% and its sorting
Date: Fri, 25 Sep 2026 05:32:12 +0000 [thread overview]
Message-ID: <20260925053214.7-1-me@dualfroz.com> (raw)
the percentage renderer took any value above 1 as bytes, so a VM above
100% showed up as 0.0 % (#7224). as Fabian suggested in the bug, the two
node selectors now calculate the percentage first, which also fixes
sorting by memory in the migration dialog (#6874), and the fallback is
gone.
tested with the built pvemanagerlib.js in a browser and the numbers from
the #7224 report: 103.5 % instead of 0.0 %, and nodes with different
total memory now sort by usage
Michal Fox (2):
fix #6874: ui: node selectors: sort memory usage by percentage
fix #7224: ui: utils: show memory usage above 100% correctly
www/manager6/Utils.js | 10 ----------
www/manager6/form/NodeSelector.js | 16 ++++++++++++++--
www/manager6/ha/NodePrioritySelector.js | 14 ++++++++++++--
3 files changed, 26 insertions(+), 14 deletions(-)
--
2.43.0
next reply other threads:[~2026-09-28 7:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 5:32 Michal Fox [this message]
2026-09-25 5:32 ` [PATCH manager 1/2] fix #6874: ui: node selectors: sort memory usage by percentage Michal Fox
2026-09-25 5:32 ` [PATCH manager 2/2] fix #7224: ui: utils: show memory usage above 100% correctly Michal Fox
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=20260925053214.7-1-me@dualfroz.com \
--to=me@dualfroz.com \
--cc=pve-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