PerfData: Don't render missing values as `0.00`

This commit is contained in:
Johannes Meyer 2021-04-13 14:24:39 +02:00
parent 7fd7efceb4
commit a4d495e17c
1 changed files with 4 additions and 0 deletions

View File

@ -433,6 +433,10 @@ class Perfdata
*/
protected function format($value)
{
if ($value === null) {
return null;
}
if ($value instanceof ThresholdRange) {
if ($value->getMin()) {
return (string) $value;