Explorar o código

* Restructured check_ code

svn: 266
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
efdada0963
Modificáronse 1 ficheiros con 10 adicións e 10 borrados
  1. 10 10
      src/main.c

+ 10 - 10
src/main.c

@@ -720,26 +720,26 @@ int curcheck = 0;
 void core_10secondly()
 {
   curcheck++;
-  check_promisc();
+#ifdef LEAF
+  if (localhub)
+#endif /* LEAF */
+    check_promisc();
 
   if (curcheck==1)
     check_trace(0);
 
 #ifdef LEAF
   if (localhub) {
-#endif
+#endif /* LEAF */
     if (curcheck==2)
       check_last();
-#ifdef LEAF
-  }
-#endif
-  if (curcheck==3) {
-#ifdef LEAF
-    if (localhub)
+    if (curcheck==3) {
       check_processes();
-#endif
-    curcheck=0;
+      curcheck=0;
+    }
+#ifdef LEAF
   }
+#endif /* LEAF */
 }
 
 void do_fork() {