mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-20 22:13:19 +03:00
Support Remaining_Lifetime_Perc
This commit is contained in:
@@ -333,6 +333,9 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
|||||||
unsigned long long totalGbWritten = (lbaWritten * logicalBlockSize) / oneGB;
|
unsigned long long totalGbWritten = (lbaWritten * logicalBlockSize) / oneGB;
|
||||||
totalWrites = QString::number(static_cast<int>(totalGbWritten)) + " GB";
|
totalWrites = QString::number(static_cast<int>(totalGbWritten)) + " GB";
|
||||||
}
|
}
|
||||||
|
} else if (attrObj["name"] == "Remaining_Lifetime_Perc") {
|
||||||
|
int percentageUsed = attrObj["value"].toInt();
|
||||||
|
percentage = QString::number(percentageUsed) + " %";
|
||||||
} else if (attrObj["name"] == "Media_Wearout_Indicator") {
|
} else if (attrObj["name"] == "Media_Wearout_Indicator") {
|
||||||
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