From 105ecc44522d9e9f784db12bf148206a623c9b5a Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 22 Apr 2021 19:56:42 +0200 Subject: [PATCH] Add debug --- app/Console/Commands/Correction/FixFrontpageAccounts.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Console/Commands/Correction/FixFrontpageAccounts.php b/app/Console/Commands/Correction/FixFrontpageAccounts.php index fe004b8d5c..31e510542b 100644 --- a/app/Console/Commands/Correction/FixFrontpageAccounts.php +++ b/app/Console/Commands/Correction/FixFrontpageAccounts.php @@ -34,6 +34,8 @@ class FixFrontpageAccounts extends Command */ public function handle(): int { + $start = microtime(true); + $users = User::get(); /** @var User $user */ foreach ($users as $user) { @@ -42,6 +44,8 @@ class FixFrontpageAccounts extends Command $this->fixPreference($preference); } } + $end = round(microtime(true) - $start, 2); + $this->info(sprintf('Verifying account preferences took %s seconds', $end)); return 0; }