ProcessController: fix huge bar for low CPU systems

This commit is contained in:
Adrien Destugues 2021-01-10 20:46:36 +01:00
parent 7b661b559e
commit 7de9578142
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ PCWindow::PCWindow()
system_info info;
get_system_info(&info);
int width = 15;
int width = 4;
if (info.cpu_count > 4)
width = info.cpu_count;
if (info.cpu_count <= 16)

View File

@ -130,7 +130,7 @@ instantiate_deskbar_item(float maxWidth, float maxHeight)
system_info info;
get_system_info(&info);
int width = 15;
int width = 4;
if (info.cpu_count > 4)
width = info.cpu_count;
if (info.cpu_count <= 16)