Don't show empty pies
This commit is contained in:
parent
948af6a194
commit
859d964d6b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue