mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-13 00:00:52 +03:00
Support Patriot drives
This commit is contained in:
@@ -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) + " %";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user