From c4a9c2bb6f2adf4e51ea75d1d21dfe5cc694571c Mon Sep 17 00:00:00 2001 From: Erwin Junge Date: Mon, 19 Oct 2020 10:24:53 +0200 Subject: [PATCH] Spread CPUs accross columns evenly if possible --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index 1c36b89..7ad5536 100755 --- a/bpytop.py +++ b/bpytop.py @@ -1772,7 +1772,7 @@ class CpuBox(Box, SubBox): out += f'{cpu.cpu_temp[n][-1]:>4}{THEME.main_fg}°C' out += f'{THEME.div_line(Symbol.v_line)}' cy += 1 - if cy == bh: + if cy > ceil(THREADS/cls.box_columns) and n != THREADS: cc += 1; cy = 1; cx = ccw * cc if cc == cls.box_columns: break