forked from leftypol/leftypol
maintenance.php: fix logging
This commit is contained in:
parent
6f8ada0f42
commit
d74ba41198
1 changed files with 4 additions and 4 deletions
|
@ -5,16 +5,16 @@
|
|||
|
||||
require dirname(__FILE__) . '/inc/cli.php';
|
||||
|
||||
echo "Clearing expired bans...";
|
||||
echo "Clearing expired bans...\n";
|
||||
$start = microtime(true);
|
||||
$deleted_count = Bans::purge($config['require_ban_view'], $config['purge_bans']);
|
||||
$delta = microtime(true) - $start;
|
||||
echo "Deleted $deleted_count expired bans in $delta seconds!";
|
||||
echo "Deleted $deleted_count expired bans in $delta seconds!\n";
|
||||
modLog("Deleted expired bans in {$delta}s with tools/maintenance.php");
|
||||
|
||||
echo "Clearing old antispam...";
|
||||
echo "Clearing old antispam...\n";
|
||||
$start = microtime(true);
|
||||
$deleted_count = purge_old_antispam();
|
||||
$delta = microtime(true) - $start;
|
||||
echo "Deleted $deleted_count expired antispam in $delta seconds!";
|
||||
echo "Deleted $deleted_count expired antispam in $delta seconds!\n";
|
||||
modLog("Deleted expired antispam in {$delta}s with tools/maintenance.php");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue