diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-12 13:23:54 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-12 13:23:54 +0100 |
commit | b527be73791648a6fa424a3b654d84374bb0bd86 (patch) | |
tree | ec6d18cb87cca945feb735e0538846237c17b93e | |
parent | 2ca83ef4a185d3cd6459a68c1d7bc959f90e8065 (diff) |
Fix UI line number to maximum Pi screen size
-rw-r--r-- | UI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |