Merge pull request #3542 from annando/1706-not-done

Only show the number of workerqueue entries that aren't done
This commit is contained in:
Tobias Diekershoff 2017-06-20 07:39:28 +02:00 committed by GitHub
commit 13c8750c27
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ function admin_page_summary(App $a) {
$r = qu("SELECT COUNT(*) AS `total` FROM `queue` WHERE 1");
$queue = (($r) ? $r[0]['total'] : 0);
$r = qu("SELECT COUNT(*) AS `total` FROM `workerqueue` WHERE 1");
$r = qu("SELECT COUNT(*) AS `total` FROM `workerqueue` WHERE NOT `done`");
$workerqueue = (($r) ? $r[0]['total'] : 0);
// We can do better, but this is a quick queue status