ProcessController: fix huge bar for low CPU systems
This commit is contained in:
parent
7b661b559e
commit
7de9578142
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user