Fixed line endings.
This commit is contained in:
parent
c28728d903
commit
596cc44dfa
@ -81,7 +81,7 @@ int getRAM()
|
||||
int getNumProcessors()
|
||||
{
|
||||
#ifdef __linux__
|
||||
return sysconf(_SC_NPROCESSORS_CONF);
|
||||
return sysconf(_SC_NPROCESSORS_CONF);
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
SYSTEM_INFO si;
|
||||
@ -89,13 +89,13 @@ int getNumProcessors()
|
||||
return si.dwNumberOfProcessors;
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
// Mac OS X doesn't have sysconf(_SC_NPROCESSORS_CONF)
|
||||
int mib[] = { CTL_HW, HW_NCPU };
|
||||
int ncpus;
|
||||
size_t len = sizeof(ncpus);
|
||||
int ret = sysctl(mib, 2, &ncpus, &len, NULL, 0);
|
||||
assert(ret != -1);
|
||||
return ncpus;
|
||||
// Mac OS X doesn't have sysconf(_SC_NPROCESSORS_CONF)
|
||||
int mib[] = { CTL_HW, HW_NCPU };
|
||||
int ncpus;
|
||||
size_t len = sizeof(ncpus);
|
||||
int ret = sysctl(mib, 2, &ncpus, &len, NULL, 0);
|
||||
assert(ret != -1);
|
||||
return ncpus;
|
||||
#endif
|
||||
Log::error("HW report",
|
||||
"Number of processors not available for hardware report.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user