Pārlūkot izejas kodu

* Check maxfiles half-hourly, not minutely

Bryan Drewery 16 gadi atpakaļ
vecāks
revīzija
5484e0cb56
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -583,7 +583,6 @@ static void core_minutely()
       washub = conf.bot->hub;
       washub = conf.bot->hub;
     else if (washub != conf.bot->hub)
     else if (washub != conf.bot->hub)
       fatal(STR("MEMORY HACKED"), 0);
       fatal(STR("MEMORY HACKED"), 0);
-    check_maxfiles();
     check_mypid();
     check_mypid();
   } else if (conf.bot->hub || conf.bot->localhub)
   } else if (conf.bot->hub || conf.bot->localhub)
     send_timesync(-1);
     send_timesync(-1);
@@ -608,7 +607,8 @@ static void core_halfhourly()
 
 
     if (link_cleartext)
     if (link_cleartext)
       putlog(LOG_WARN, "*", STR("'link_cleartext' currently enabled. This is a security risk. Disable with '%sset link_cleartext 0'"), settings.dcc_prefix);
       putlog(LOG_WARN, "*", STR("'link_cleartext' currently enabled. This is a security risk. Disable with '%sset link_cleartext 0'"), settings.dcc_prefix);
-  }
+  } else
+    check_maxfiles();
 }
 }
 
 
 static void startup_checks(int hack) {
 static void startup_checks(int hack) {