From b527be73791648a6fa424a3b654d84374bb0bd86 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Jan 2025 13:23:54 +0100 Subject: Fix UI line number to maximum Pi screen size --- UI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'UI.cpp') 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; -- cgit v1.2.3