mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
PerfData: Don't render missing values as 0.00
This commit is contained in:
parent
7fd7efceb4
commit
a4d495e17c
@ -433,6 +433,10 @@ class Perfdata
|
|||||||
*/
|
*/
|
||||||
protected function format($value)
|
protected function format($value)
|
||||||
{
|
{
|
||||||
|
if ($value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if ($value instanceof ThresholdRange) {
|
if ($value instanceof ThresholdRange) {
|
||||||
if ($value->getMin()) {
|
if ($value->getMin()) {
|
||||||
return (string) $value;
|
return (string) $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user