mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-30 03:29:01 -07:00
remove all offending code, return 1. Will only impact the speed of hardnested execution.
This commit is contained in:
parent
90463cb79f
commit
fe35a972f5
1 changed files with 4 additions and 0 deletions
|
@ -873,11 +873,15 @@ int num_CPUs(void) {
|
||||||
count = 1;
|
count = 1;
|
||||||
return count;
|
return count;
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
/*
|
||||||
|
TODO ICEMAN 2019, its commented out until someone finds a better solution
|
||||||
#include "sys/sysctl.h"
|
#include "sys/sysctl.h"
|
||||||
uint32_t logicalcores = 0;
|
uint32_t logicalcores = 0;
|
||||||
size_t size = sizeof( logicalcores );
|
size_t size = sizeof( logicalcores );
|
||||||
sysctlbyname( "hw.logicalcpu", &logicalcores, &size, NULL, 0 );
|
sysctlbyname( "hw.logicalcpu", &logicalcores, &size, NULL, 0 );
|
||||||
return logicalcores;
|
return logicalcores;
|
||||||
|
*/
|
||||||
|
return 1;
|
||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue