From 931b0353daa7d3145bb925035c4ae19ad6d500b0 Mon Sep 17 00:00:00 2001 From: Spiros Date: Thu, 29 May 2025 22:15:46 +0300 Subject: [PATCH] Add one decimal point precision on host read/writes when TB --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f23a581..0f6497a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -704,7 +704,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal if (totalReadsInt < 1000 || useGB) { totalReads = QString::number(totalReadsInt) + " " + gbSymbol; } else { - totalReads = QString::number(totalReadsInt/1000) + " " + tbSymbol; + totalReads = QString::number(totalReadsInt/1000.0, 'f', 1) + " " + tbSymbol; } } else { totalReads = "----"; @@ -714,7 +714,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal if (totalWritesInt < 1000 || useGB) { totalWrites = QString::number(totalWritesInt) + " " + gbSymbol; } else { - totalWrites = QString::number(totalWritesInt/1000) + " " + tbSymbol; + totalWrites = QString::number(totalWritesInt/1000.0, 'f', 1) + " " + tbSymbol; } } else { totalWrites = "----";