Don't show empty pies

This commit is contained in:
Thomas Gelf 2014-02-21 10:28:25 +00:00
parent 948af6a194
commit 859d964d6b
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
continue;
}
if ($unit == 'c') continue; // Counter pie graphs are not useful
if ($compact && $val < 0.0001) continue;
if ($unit == '%') {
if (! $min ) $min = 0;
if (! $max) $max = 100;