改名
This commit is contained in:
@@ -45,7 +45,7 @@ class Biomonitoring extends Process
|
||||
$server = Snowflake::app()->getSwoole();
|
||||
Timer::tick(1000, function () use ($server) {
|
||||
clearstatcache();
|
||||
if (($size = filesize($server->setting['log_file'])) > 1024000000) {
|
||||
if (filesize($server->setting['log_file']) > 1024000000) {
|
||||
@unlink($server->setting['log_file']);
|
||||
Process::kill($server->master_pid, SIGRTMIN);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class ServerInotify extends Process
|
||||
* @param bool $isReload
|
||||
* @throws Exception
|
||||
*/
|
||||
private function loadDirs($isReload = false)
|
||||
private function loadDirs(bool $isReload = false)
|
||||
{
|
||||
foreach ($this->dirs as $value) {
|
||||
if (is_bool($path = realpath($value))) {
|
||||
@@ -120,7 +120,7 @@ class ServerInotify extends Process
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
private function loadByDir($path, $isReload = false): void
|
||||
private function loadByDir($path, bool $isReload = false): void
|
||||
{
|
||||
if (!is_string($path)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user