mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Do not show pie charts for perfdata values when no percentage is available
refs #6515
This commit is contained in:
parent
ec2d1daa6b
commit
5908e9fc70
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||
$table = array();
|
||||
$pset = array_slice(PerfdataSet::fromString($perfdataStr)->asArray(), 0, ($compact ? 5 : null));
|
||||
foreach ($pset as $perfdata) {
|
||||
if (!$perfdata->isPercentage() && $perfdata->getMaximumValue() === null) {
|
||||
if ($perfdata->getPercentage() == 0) {
|
||||
continue;
|
||||
}
|
||||
$pieChart = $this->createInlinePie($perfdata);
|
||||
|
|
|
|||
Loading…
Reference in a new issue