فهرست منبع

* Check maxfiles half-hourly, not minutely

Bryan Drewery 16 سال پیش
والد
کامیت
5484e0cb56
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -583,7 +583,6 @@ static void core_minutely()
       washub = conf.bot->hub;
     else if (washub != conf.bot->hub)
       fatal(STR("MEMORY HACKED"), 0);
-    check_maxfiles();
     check_mypid();
   } else if (conf.bot->hub || conf.bot->localhub)
     send_timesync(-1);
@@ -608,7 +607,8 @@ static void core_halfhourly()
 
     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);
-  }
+  } else
+    check_maxfiles();
 }
 
 static void startup_checks(int hack) {