From 4f2a834e466808f755a3b1ff3a9fba6005517e2e Mon Sep 17 00:00:00 2001 From: edisionnano Date: Fri, 16 Aug 2024 00:47:44 +0300 Subject: [PATCH] Add support for Percent_Lifetime_Remain --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a8a63a4..10f8916 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -572,6 +572,9 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal } else if (attrObj["name"] == "Remaining_Lifetime_Perc") { int percentageUsed = attrObj["raw"].toObject()["value"].toInt(); percentage = QString::number(percentageUsed) + " %"; + } else if (attrObj["name"] == "Percent_Lifetime_Remain") { + int percentageUsed = attrObj["raw"].toObject()["value"].toInt(); + percentage = QString::number(percentageUsed) + " %"; } else if (attrObj["name"] == "Media_Wearout_Indicator" || attrObj["name"] == "SSD_Life_Left") { int percentageUsed = attrObj["value"].toInt(); percentage = QString::number(percentageUsed) + " %";