mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 07:11:24 +12: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue