From b5fafa1414350e369cfa8a22a3c186f79a423d22 Mon Sep 17 00:00:00 2001 From: Spiros Date: Tue, 4 Jun 2024 03:17:11 +0300 Subject: [PATCH] Fix fuckup --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9b738ef..3dda56a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -334,7 +334,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal totalWrites = QString::number(static_cast(totalGbWritten)) + " GB"; } } else if (attrObj["name"] == "Remaining_Lifetime_Perc") { - int percentageUsed = attrObj["value"].toInt(); + int percentageUsed = attrObj["raw"].toObject()["value"].toInt(); percentage = QString::number(percentageUsed) + " %"; } else if (attrObj["name"] == "Media_Wearout_Indicator") { int percentageUsed = attrObj["value"].toInt();