diff --git a/mainwindow.cpp b/mainwindow.cpp index dece878..d03ee84 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -231,7 +231,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal unsigned long long totalGbWritten = (lbaWritten * logicalBlockSize) / oneGB; totalWrites = QString::number(static_cast(totalGbWritten)) + " GB"; } else if (attrObj["name"] == "Host_Writes_GiB") { // WD uses GiB - double gibibytes = (attrObj["raw"].toObject()["value"].toDouble() + double gibibytes = attrObj["raw"].toObject()["value"].toDouble(); double bytesPerGiB = static_cast(1ULL << 30); double bytesPerGB = 1e9; double conversionFactor = bytesPerGiB / bytesPerGB; @@ -251,7 +251,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal unsigned long long totalGbRead = (lbaRead * logicalBlockSize) / oneGB; totalReads = QString::number(static_cast(totalGbRead)) + " GB"; } else if (attrObj["name"] == "Host_Reads_GiB") { - double gibibytes = (attrObj["raw"].toObject()["value"].toDouble() + double gibibytes = attrObj["raw"].toObject()["value"].toDouble(); double bytesPerGiB = static_cast(1ULL << 30); double bytesPerGB = 1e9; double conversionFactor = bytesPerGiB / bytesPerGB;