summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-15 19:05:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-15 19:05:33 +0900
commitbeaa9b386452bdbaa8e444dddcb008d6d63f4ec8 (patch)
tree184cdb6730493dc1feb30791842ff5aa22f7abba /src/lib/eina
parentd744223f6dd0ddc05f0e16b5b23f6ed00e69ad82 (diff)
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
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/eina/eina_cpu.c b/src/lib/eina/eina_cpu.c
index 08b0860fbb..b1a5eccb14 100644
--- a/src/lib/eina/eina_cpu.c
+++ b/src/lib/eina/eina_cpu.c
@@ -228,9 +228,7 @@ _eina_cpu_count_internal(void)
228 for (i = 0; i < TH_MAX; i++) 228 for (i = 0; i < TH_MAX; i++)
229 { 229 {
230 if (CPU_ISSET(i, &cpu)) 230 if (CPU_ISSET(i, &cpu))
231 cpus = i + 1; 231 cpus++;
232 else
233 break;
234 } 232 }
235 return cpus; 233 return cpus;
236 234