]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #3542 from annando/1706-not-done
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 20 Jun 2017 05:39:28 +0000 (07:39 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2017 05:39:28 +0000 (07:39 +0200)
Only show the number of workerqueue entries that aren't done

mod/admin.php

index 98558a6de48d84a52f01bf5a296cb09f20e937f3..349e9c19b3387311029284df908a14bf0782d166 100644 (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