mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-15 23:41:28 +03:00
Add support for Percent_Lifetime_Remain
This commit is contained in:
@@ -572,6 +572,9 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
|||||||
} else if (attrObj["name"] == "Remaining_Lifetime_Perc") {
|
} else if (attrObj["name"] == "Remaining_Lifetime_Perc") {
|
||||||
int percentageUsed = attrObj["raw"].toObject()["value"].toInt();
|
int percentageUsed = attrObj["raw"].toObject()["value"].toInt();
|
||||||
percentage = QString::number(percentageUsed) + " %";
|
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") {
|
} else if (attrObj["name"] == "Media_Wearout_Indicator" || attrObj["name"] == "SSD_Life_Left") {
|
||||||
int percentageUsed = attrObj["value"].toInt();
|
int percentageUsed = attrObj["value"].toInt();
|
||||||
percentage = QString::number(percentageUsed) + " %";
|
percentage = QString::number(percentageUsed) + " %";
|
||||||
|
|||||||
Reference in New Issue
Block a user