From 5908e9fc703b57171187a36ee20ba28a01ac1475 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 11 Jul 2014 16:32:05 +0200 Subject: [PATCH] Do not show pie charts for perfdata values when no percentage is available refs #6515 --- modules/monitoring/application/views/helpers/Perfdata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/helpers/Perfdata.php b/modules/monitoring/application/views/helpers/Perfdata.php index 68b9b1e9e..1d5224f1f 100644 --- a/modules/monitoring/application/views/helpers/Perfdata.php +++ b/modules/monitoring/application/views/helpers/Perfdata.php @@ -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);