Do not show pie charts for perfdata values when no percentage is available

refs #6515
This commit is contained in:
Johannes Meyer 2014-07-11 16:32:05 +02:00
parent ec2d1daa6b
commit 5908e9fc70
1 changed files with 1 additions and 1 deletions

View File

@ -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);