SVN revision: 42091
This commit is contained in:
Vincent Torri 2009-08-29 20:53:12 +00:00
parent 2a5548f8e9
commit 8f53c520a4
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ EAPI int eina_cpu_count(void)
mib[1] = HW_AVAILCPU;
#else
mib[1] = HW_NCPU;
#end
#endif
sysctl(mib, 2, &cpus, &len, NULL, 0);
if (cpus < 1)
cpus = 1;