Perfdata: add function to get perfdata unit
This commit is contained in:
parent
82e02c8ce1
commit
57f966734a
|
@ -214,6 +214,16 @@ class Perfdata
|
|||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the unit as a string
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUnit()
|
||||
{
|
||||
return $this->unit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value as percentage (0-100)
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue