netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=72a962921c08bc8680b1c6ab02ae0c8cfeeda28d

commit 72a962921c08bc8680b1c6ab02ae0c8cfeeda28d
Author: Alastair Poole <[email protected]>
Date:   Sun Dec 22 21:45:23 2019 +0000

    batman_sysctl: Fix small logic bug for BSD systems.
    
    We should be counting the number of instances other than the
    one we are deleting.
---
 src/modules/sysinfo/batman/batman_sysctl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/sysinfo/batman/batman_sysctl.c 
b/src/modules/sysinfo/batman/batman_sysctl.c
index 42790318c..39d71d115 100644
--- a/src/modules/sysinfo/batman/batman_sysctl.c
+++ b/src/modules/sysinfo/batman/batman_sysctl.c
@@ -177,11 +177,9 @@ _batman_sysctl_stop(Instance *inst)
         if (inst->cfg->esm == E_SYSINFO_MODULE_BATMAN ||
             inst->cfg->esm == E_SYSINFO_MODULE_SYSINFO)
           {
-             bat_num++;
-             if (child == inst)
+             if (child != inst)
                {
-                  bat_num--;
-                  break;
+                  bat_num++;
                }
           }
      }

-- 


Reply via email to