From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 4E0071FF09B for ; Mon, 09 Nov 2026 11:58:02 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 20B2121621; Mon, 09 Nov 2026 11:58:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=s20261001; t=1794221875; bh=vPSg1o4U+xPfE0McQqEyXFQDfPp9mwatXyEkCh9QXKQ=; h=From:Sender:To:Subject; b=J2yXSwQp5ARTw0afJCZOYYHO41Zw4YLw0P1wouXf/9jahzadKN94l1fjmQeCOye02 4uK3X6f+RIz5Gdk+J8HcPe/6sEkhYetUMg9BIOUHCxTUCamCn5muVTgecUccXlHLSR yWXtzQ/JqofPop8FJ1wNsbj4+mjVDIn6CY42Hi+ATYIoGX3JrG5BUUc2xfJuEldbQo UohGicM2NHGyY9c33vUhos/V67M9X5HqN/+gOYSN0VPfTeEVd/BjCRNnrulWnJr2Nh ZZBQubr95zjFNDnnJIyoW+4EnbHCC6RB9abkINi8Ap71RoIo5mRgYwqVOR4nFj34QD Oaj18RdfBSbgg== Date: Mon, 9 Nov 2026 11:57:54 +0100 From: piknew Sender: piknew To: pve-devel@lists.proxmox.com Subject: [PATCH] fix #7551: disk: remove redundant wearout calculation from disk list renderer Message-ID: X-Mailer: TortoiseGit MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-WP-MailID: f3f4d460721efc38a87e4cacd11ef303 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [wdPE] X-SPAM-LEVEL: Spam detection results: 0 AWL -0.000 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 FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H2 0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GHYXTJBW2BOOTE6LAC72L74UA5A3NZ4M X-Message-ID-Hash: GHYXTJBW2BOOTE6LAC72L74UA5A3NZ4M X-MailFrom: mparka@wp.pl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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 UI renderer for the wearout column previously assumed that the API returned a "remaining lifetime" value, unconditionally performing a '100 - value' calculation. This led to broken and negative values (such as -153%) on disks that exceeded their nominal TBW or returned raw wearout. Since the backend is now updated to deliver a normalized, final wearout ("used") percentage across different drive types, this patch removes the redundant calculation and prints the numeric value directly. Signed-off-by: piknew --- src/panel/DiskList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panel/DiskList.js b/src/panel/DiskList.js index 0762bab..cdd9eec 100644 --- a/src/panel/DiskList.js +++ b/src/panel/DiskList.js @@ -369,7 +369,7 @@ Ext.define('Proxmox.DiskList', { dataIndex: 'wearout', renderer: function (value) { if (Ext.isNumeric(value)) { - return (100 - value).toString() + '%'; + return value.toString() + '%'; } return gettext('N/A'); }, -- 2.43.0.windows.1