From e683191f23c7c94e5528e669b368bf93f3ec7167 Mon Sep 17 00:00:00 2001 From: spiros Date: Thu, 30 May 2024 04:06:02 +0300 Subject: [PATCH] Fix small misshap --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d062d8e..7b9d9b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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;