forked from enlightenment/efl
eina - cpu count - fic cpu count to count # of cores correctly
@fix this fixes the cpu count to count the numebr of available cores correctly. before if core 0 happened to be off, we'd get 0 cpu cores available due to the break
This commit is contained in:
parent
d744223f6d
commit
beaa9b3864
|
@ -228,9 +228,7 @@ _eina_cpu_count_internal(void)
|
|||
for (i = 0; i < TH_MAX; i++)
|
||||
{
|
||||
if (CPU_ISSET(i, &cpu))
|
||||
cpus = i + 1;
|
||||
else
|
||||
break;
|
||||
cpus++;
|
||||
}
|
||||
return cpus;
|
||||
|
||||
|
|
Loading…
Reference in New Issue