From 08b28b188f68c6c68bf41b61280984e78421ade2 Mon Sep 17 00:00:00 2001 From: Spiros Date: Sun, 2 Jun 2024 12:17:18 +0300 Subject: [PATCH] Fix compilation error --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;