mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-17 17:41:28 +03:00
Add one decimal point precision on host read/writes when TB
This commit is contained in:
@@ -704,7 +704,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
|||||||
if (totalReadsInt < 1000 || useGB) {
|
if (totalReadsInt < 1000 || useGB) {
|
||||||
totalReads = QString::number(totalReadsInt) + " " + gbSymbol;
|
totalReads = QString::number(totalReadsInt) + " " + gbSymbol;
|
||||||
} else {
|
} else {
|
||||||
totalReads = QString::number(totalReadsInt/1000) + " " + tbSymbol;
|
totalReads = QString::number(totalReadsInt/1000.0, 'f', 1) + " " + tbSymbol;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
totalReads = "----";
|
totalReads = "----";
|
||||||
@@ -714,7 +714,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
|||||||
if (totalWritesInt < 1000 || useGB) {
|
if (totalWritesInt < 1000 || useGB) {
|
||||||
totalWrites = QString::number(totalWritesInt) + " " + gbSymbol;
|
totalWrites = QString::number(totalWritesInt) + " " + gbSymbol;
|
||||||
} else {
|
} else {
|
||||||
totalWrites = QString::number(totalWritesInt/1000) + " " + tbSymbol;
|
totalWrites = QString::number(totalWritesInt/1000.0, 'f', 1) + " " + tbSymbol;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
totalWrites = "----";
|
totalWrites = "----";
|
||||||
|
|||||||
Reference in New Issue
Block a user