mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-01 10:15:30 +00:00
fix variable name
This commit is contained in:
parent
22156d230d
commit
3fbde71313
1 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int
|
||||||
|
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
if (!str_ends_with($filename, '.tar.gz'))
|
if (!str_ends_with($file, '.tar.gz'))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
@ -826,6 +826,9 @@ foreach($index->search('')
|
||||||
@mkdir($filepath, 0755, true);
|
@mkdir($filepath, 0755, true);
|
||||||
|
|
||||||
// Check latest snap older than defined in settings
|
// Check latest snap older than defined in settings
|
||||||
|
echo getLastSnapTime((array) scandir($filepath)) . PHP_EOL;
|
||||||
|
echo time() - getLastSnapTime((array) scandir($filepath)) . PHP_EOL;
|
||||||
|
echo $config->cli->document->crawl->snap->timeout . PHP_EOL;
|
||||||
if (time() - getLastSnapTime((array) scandir($filepath)) > $config->cli->document->crawl->snap->timeout)
|
if (time() - getLastSnapTime((array) scandir($filepath)) > $config->cli->document->crawl->snap->timeout)
|
||||||
{
|
{
|
||||||
$filename = sprintf(
|
$filename = sprintf(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue