netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=de6f8a3d99aa2ca3e2e5343d2238eb571140940f

commit de6f8a3d99aa2ca3e2e5343d2238eb571140940f
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Jul 13 10:05:42 2021 +0100

    cpu: oops.
---
 src/bin/system/machine/cpu.bogox | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/bin/system/machine/cpu.bogox b/src/bin/system/machine/cpu.bogox
index 8478168..3effce3 100644
--- a/src/bin/system/machine/cpu.bogox
+++ b/src/bin/system/machine/cpu.bogox
@@ -70,9 +70,7 @@ int
 system_cpu_online_count_get(void)
 {
 #if defined(__OpenBSD__)
-   static int cores = 0;
-
-   if (cores != 0) return cores;
+   int cores = 0;
 
    size_t len;
    int mib[2] = { CTL_HW, HW_NCPUONLINE };

-- 


Reply via email to