mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
official additioin + zero bonus
This commit is contained in:
@@ -23,13 +23,14 @@ if (isset($_SERVER['argv'][1])) {
|
||||
$force = $_SERVER['argv'][1] ? 1 : 0;
|
||||
}
|
||||
$logPrefix = "[CLEANUP_CLI]";
|
||||
$begin = time();
|
||||
try {
|
||||
if ($force) {
|
||||
$result = docleanup(1, true);
|
||||
} else {
|
||||
$result = autoclean(true);
|
||||
}
|
||||
$log = "$logPrefix, DONE: $result";
|
||||
$log = "$logPrefix, DONE: $result, cost time in seconds: " . (time() - $begin);
|
||||
do_log($log);
|
||||
printProgress($log);
|
||||
} catch (\Exception $exception) {
|
||||
|
||||
Reference in New Issue
Block a user