Fix small misshap

This commit is contained in:
spiros
2024-05-30 04:06:02 +03:00
parent 90c19c36ee
commit e683191f23

View File

@@ -198,7 +198,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
for (const QJsonValue &attr : attributes) { //Need different logic for NVMe
QJsonObject attrObj = attr.toObject();
if (attrObj["id"] == 241 && !isNvme) {
if (attrObj["name"] == "Host_Writes_32MiB") {
if (attrObj["name"] == "Total_Writes_GB") {
totalWrites = QString::number(attrObj["raw"].toObject()["value"].toInt()) + " GB";
} else if (attrObj["name"] == "Host_Writes_32MiB") {
double gibibytes = (attrObj["raw"].toObject()["value"].toInt() * 32 * 1024.0 * 1024.0) / 1e9;