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

Only show the number of workerqueue entries that aren't done
pull/3544/head
Tobias Diekershoff 2017-06-20 07:39:28 +02:00 zatwierdzone przez GitHub
commit 13c8750c27
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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