This commit is contained in:
2023-12-19 17:50:59 +08:00
parent cddf84c76a
commit 3f614ae8cd
+4 -7
View File
@@ -48,16 +48,13 @@ class Scanner extends Component
}
$this->load_directory($value->getRealPath());
} else if ($value->getExtension() == 'php') {
$mic = microtime(true);
$this->load_file($value->getRealPath());
if (microtime(true) - $mic > 0.005) {
$this->files[$value->getRealPath()] = microtime(true) - $mic;
if (in_array($value->getRealPath(), $this->files)) {
continue;
}
$this->files[] = $value->getRealPath();
$this->load_file($value->getRealPath());
}
}
var_dump($this->files);
}