mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
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;
|
continue;
|
||||||
}
|
}
|
||||||
if ($unit == 'c') continue; // Counter pie graphs are not useful
|
if ($unit == 'c') continue; // Counter pie graphs are not useful
|
||||||
|
if ($compact && $val < 0.0001) continue;
|
||||||
if ($unit == '%') {
|
if ($unit == '%') {
|
||||||
if (! $min ) $min = 0;
|
if (! $min ) $min = 0;
|
||||||
if (! $max) $max = 100;
|
if (! $max) $max = 100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user