Only show the number of workerqueue entries that aren't done

pull/3542/head
Michael 2017-06-20 02:05:16 +00:00
rodzic ceaa191d8c
commit be3bfaec80
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