mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-11 07:10:52 +03:00
Fix compilation error
This commit is contained in:
@@ -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<int>(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<double>(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<int>(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<double>(1ULL << 30);
|
||||
double bytesPerGB = 1e9;
|
||||
double conversionFactor = bytesPerGiB / bytesPerGB;
|
||||
|
||||
Reference in New Issue
Block a user