mirror of
https://github.com/friendica/friendica
synced 2024-11-11 01:02:54 +00:00
Merge pull request #7218 from nupplaphil/bug/remove_queue_summary
Remove queue from Admin/Summary
This commit is contained in:
commit
7875199167
1 changed files with 1 additions and 3 deletions
|
@ -146,8 +146,6 @@ class Summary extends BaseAdminModule
|
||||||
|
|
||||||
$pending = Register::getPendingCount();
|
$pending = Register::getPendingCount();
|
||||||
|
|
||||||
$queue = DBA::count('queue', []);
|
|
||||||
|
|
||||||
$deferred = DBA::count('workerqueue', ['`executed` <= ? AND NOT `done` AND `next_try` > ?',
|
$deferred = DBA::count('workerqueue', ['`executed` <= ? AND NOT `done` AND `next_try` > ?',
|
||||||
DBA::NULL_DATETIME, DateTimeFormat::utcNow()]);
|
DBA::NULL_DATETIME, DateTimeFormat::utcNow()]);
|
||||||
|
|
||||||
|
@ -155,7 +153,7 @@ class Summary extends BaseAdminModule
|
||||||
DBA::NULL_DATETIME, DateTimeFormat::utcNow()]);
|
DBA::NULL_DATETIME, DateTimeFormat::utcNow()]);
|
||||||
|
|
||||||
// We can do better, but this is a quick queue status
|
// We can do better, but this is a quick queue status
|
||||||
$queues = ['label' => L10n::t('Message queues'), 'queue' => $queue, 'deferred' => $deferred, 'workerq' => $workerqueue];
|
$queues = ['label' => L10n::t('Message queues'), 'deferred' => $deferred, 'workerq' => $workerqueue];
|
||||||
|
|
||||||
$variables = DBA::toArray(DBA::p('SHOW variables LIKE "max_allowed_packet"'));
|
$variables = DBA::toArray(DBA::p('SHOW variables LIKE "max_allowed_packet"'));
|
||||||
$max_allowed_packet = $variables ? $variables[0]['Value'] : 0;
|
$max_allowed_packet = $variables ? $variables[0]['Value'] : 0;
|
||||||
|
|
Loading…
Reference in a new issue