mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-12 19:51:26 +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;
|
unsigned long long totalGbWritten = (lbaWritten * logicalBlockSize) / oneGB;
|
||||||
totalWrites = QString::number(static_cast<int>(totalGbWritten)) + " GB";
|
totalWrites = QString::number(static_cast<int>(totalGbWritten)) + " GB";
|
||||||
} else if (attrObj["name"] == "Host_Writes_GiB") { // WD uses GiB
|
} 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 bytesPerGiB = static_cast<double>(1ULL << 30);
|
||||||
double bytesPerGB = 1e9;
|
double bytesPerGB = 1e9;
|
||||||
double conversionFactor = bytesPerGiB / bytesPerGB;
|
double conversionFactor = bytesPerGiB / bytesPerGB;
|
||||||
@@ -251,7 +251,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
|||||||
unsigned long long totalGbRead = (lbaRead * logicalBlockSize) / oneGB;
|
unsigned long long totalGbRead = (lbaRead * logicalBlockSize) / oneGB;
|
||||||
totalReads = QString::number(static_cast<int>(totalGbRead)) + " GB";
|
totalReads = QString::number(static_cast<int>(totalGbRead)) + " GB";
|
||||||
} else if (attrObj["name"] == "Host_Reads_GiB") {
|
} 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 bytesPerGiB = static_cast<double>(1ULL << 30);
|
||||||
double bytesPerGB = 1e9;
|
double bytesPerGB = 1e9;
|
||||||
double conversionFactor = bytesPerGiB / bytesPerGB;
|
double conversionFactor = bytesPerGiB / bytesPerGB;
|
||||||
|
|||||||
Reference in New Issue
Block a user