* [PATCH] fix #7551: disk: remove redundant wearout calculation from disk list renderer
@ 2026-11-09 10:57 piknew
0 siblings, 0 replies; only message in thread
From: piknew @ 2026-11-09 10:57 UTC (permalink / raw)
To: pve-devel
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 <mparka@wp.pl>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-09 10:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 10:57 [PATCH] fix #7551: disk: remove redundant wearout calculation from disk list renderer piknew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox