From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 7939C1FF09B for ; Mon, 28 Sep 2026 09:16:20 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id EAEE821850; Mon, 28 Sep 2026 09:15:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dualfroz.com; s=dkim; t=1790314335; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=Ppi8jQ9gT2H7Gr7noW6ZURm294VsdQsIkfOAoyDNEHw=; b=ak7LZ1ws7e4Eb6kVp8n4hquy6V0lHhXCthXXa5/t8NhHGjsMPkO3vJ17b9k2CceHdnJ1St TIN+FvCoGJfMbGsERqpFrkpJoaC5QQqao30EQN2frZKNiq44skpkyha0WFwP7rvFxmg3eb IwrTp0zAY5+BIvRE2E/HwBt8BDfC1/crUZgYv++5W1zktodVj9JsPFppC8FLYDSp7qJngE YWwsyId6fefgINbE6VOfLS5KE+uTNLQUr5hkwelL37o4IyeTvtCQbeTHCY/5EFMkyWVAwR mNTV6PEQshZE2wpA41ERcRC5OJgaDJMqToZEv99r+c/eVg4mkTEPyCcgkhT/tw== From: Michal Fox 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 Message-ID: <20260925053214.7-1-me@dualfroz.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.335 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-MailFrom: me@dualfroz.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation Message-ID-Hash: 62ZW2XH2TJXSYTGMBMUYOBZVV3AQP6MA X-Message-ID-Hash: 62ZW2XH2TJXSYTGMBMUYOBZVV3AQP6MA X-Mailman-Approved-At: Mon, 28 Sep 2026 09:14:43 +0200 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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