mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fix perf data to add maximum if set only
This commit is contained in:
parent
3cce6caed1
commit
6537277d89
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ function New-IcingaCheck()
|
|||
$this.Maximum = $this.__ThresholdObject.BaseValue;
|
||||
}
|
||||
|
||||
if ($this.Value -gt $this.Maximum) {
|
||||
if ($this.Value -gt $this.Maximum -And [string]::IsNullOrEmpty($this.Maximum) -eq $FALSE) {
|
||||
$this.Maximum = $this.__ThresholdObject.RawValue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue