TacticalController: Subtract not checked count from pending count
Pending counts include not checked objects as well fixes #3280
This commit is contained in:
parent
f872a95cc5
commit
dfda22017b
|
@ -62,6 +62,10 @@ class TacticalController extends Controller
|
||||||
$this->handleFormatRequest($stats);
|
$this->handleFormatRequest($stats);
|
||||||
$summary = $stats->fetchRow();
|
$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 = new Donut();
|
||||||
$hostSummaryChart
|
$hostSummaryChart
|
||||||
->addSlice($summary->hosts_up, array('class' => 'slice-state-ok'))
|
->addSlice($summary->hosts_up, array('class' => 'slice-state-ok'))
|
||||||
|
|
Loading…
Reference in New Issue