From 13fa03783f73339f613a7eb1a9ecef48bc537360 Mon Sep 17 00:00:00 2001 From: bill Date: Tue, 4 Jun 2024 22:37:04 +0300 Subject: [PATCH] Support Patriot drives --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 47b0965..529cc54 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -345,7 +345,7 @@ 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"] == "Media_Wearout_Indicator") { + } else if (attrObj["name"] == "Media_Wearout_Indicator" || attrObj["name"] == "SSD_Life_Left") { int percentageUsed = attrObj["value"].toInt(); percentage = QString::number(percentageUsed) + " %"; }