Do not show pie charts for perfdata values when no percentage is available
refs #6515
This commit is contained in:
parent
ec2d1daa6b
commit
5908e9fc70
|
@ -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 New Issue