summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-12 13:23:54 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-12 13:23:54 +0100
commitb527be73791648a6fa424a3b654d84374bb0bd86 (patch)
treeec6d18cb87cca945feb735e0538846237c17b93e
parent2ca83ef4a185d3cd6459a68c1d7bc959f90e8065 (diff)
Fix UI line number to maximum Pi screen size
-rw-r--r--UI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/UI.cpp b/UI.cpp
index e4428bf..bb5f6aa 100644
--- a/UI.cpp
+++ b/UI.cpp
@@ -175,10 +175,10 @@ void UI::draw()
std::cout << " CPU:";
for (auto& i: cpuloads) {
- std::cout << fmt::format(" {:2}%", i);
+ std::cout << fmt::format(" {:3}%", i);
}
int max = *std::max_element(cpuloads.begin(), cpuloads.end());
- std::cout << fmt::format(", max. {:2}%", max) << std::endl;
+ std::cout << fmt::format(", max. {:3}%", max);
std::cout << fmt::format(" Temperature: {:3} C", temperature) << std::endl;
std::cout << fmt::format(" Main loops/s: {:3}", main_loops_per_second) << std::endl;