1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2024-04-25 14:03:00 -03:00
parent 9fac56c21c
commit c14dfb9212
2 changed files with 4 additions and 1 deletions

View file

@ -127,6 +127,9 @@ function getDirSize($dir, $forceNew = false)
} else {
$command = "du -sb {$dir}";
exec($command . " < /dev/null 2>&1", $output, $return_val);
if(isCommandLineInterface()){
echo $command.PHP_EOL;
}
if ($return_val !== 0) {
_error_log("getDirSize: ERROR ON Command {$command}");
$return = 0;

View file

@ -81,7 +81,7 @@ if ($res != false) {
$statusSkipped[$row['status']] = 0;
}
$statusSkipped[$row['status']]++;
echo "{$info} ERROR skipped {$row['status']}". PHP_EOL;
echo "{$info} ERROR skipped status={$row['status']}". PHP_EOL;
}
}
} else {