mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
monitoring: Count hosts once in services/show.phtml
This commit is contained in:
parent
3d95e37b7f
commit
a7a99b5856
@ -23,7 +23,8 @@
|
|||||||
|
|
||||||
<div class="hbox">
|
<div class="hbox">
|
||||||
<div class="hbox-item" style="width: 6em;">
|
<div class="hbox-item" style="width: 6em;">
|
||||||
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', array_sum(array_values($hostStates))), array_sum(array_values($hostStates))) ?></b>
|
<?php $hostCount = array_sum(array_values($hostStates)) ?>
|
||||||
|
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item">
|
<div class="hbox-item">
|
||||||
<?= $this->hostStatesPieChart ?>
|
<?= $this->hostStatesPieChart ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user