TacticalController: Subtract not checked count from pending count

Pending counts include not checked objects as well

fixes #3280
This commit is contained in:
Johannes Meyer 2020-04-09 15:42:43 +02:00
parent f872a95cc5
commit dfda22017b
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class TacticalController extends Controller
$this->handleFormatRequest($stats);
$summary = $stats->fetchRow();
// Correct pending counts. Done here instead of in the query for compatibility reasons.
$summary->hosts_pending -= $summary->hosts_not_checked;
$summary->services_pending -= $summary->services_not_checked;
$hostSummaryChart = new Donut();
$hostSummaryChart
->addSlice($summary->hosts_up, array('class' => 'slice-state-ok'))