Spread CPUs accross columns evenly if possible

pull/151/head
Erwin Junge 2020-10-19 10:24:53 +02:00
parent 504a0ed337
commit c4a9c2bb6f
No known key found for this signature in database
GPG Key ID: 6BB40CCFB5157446
1 changed files with 1 additions and 1 deletions

View File

@ -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