mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-29 22:51:35 +02:00
Changed: Using sysconf(_SC_NPROCESSORS_CONF) for number of cores instead of sysconf(_SC_NPROCESSORS_ONLN)
This commit is contained in:
parent
24f06094f8
commit
96b770cfdb
@ -95,7 +95,7 @@ namespace Shared {
|
|||||||
if (passwd_path.empty())
|
if (passwd_path.empty())
|
||||||
Logger::warning("Could not read /etc/passwd, will show UID instead of username.");
|
Logger::warning("Could not read /etc/passwd, will show UID instead of username.");
|
||||||
|
|
||||||
coreCount = sysconf(_SC_NPROCESSORS_ONLN);
|
coreCount = sysconf(_SC_NPROCESSORS_CONF);
|
||||||
if (coreCount < 1) {
|
if (coreCount < 1) {
|
||||||
coreCount = 1;
|
coreCount = 1;
|
||||||
Logger::warning("Could not determine number of cores, defaulting to 1.");
|
Logger::warning("Could not determine number of cores, defaulting to 1.");
|
||||||
|
Loading…
Reference in New Issue
Block a user