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:
Carsten Haitzler 2015-05-15 19:05:33 +09:00
parent d744223f6d
commit beaa9b3864
1 changed files with 1 additions and 3 deletions

View File

@ -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;