fix nsclient restapi warning

This commit is contained in:
qgarnier 2018-01-08 11:46:29 +01:00
parent 747af00f96
commit a44c55815c
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ sub nscp_output_perf {
value => sprintf($printf_format, $perf->{value}),
warning => defined($perf->{warning}) ? sprintf($printf_format, $perf->{warning}) : undef,
critical => defined($perf->{critical}) ? sprintf($printf_format, $perf->{critical}) : undef,
min => sprintf($printf_format, $perf->{minimum}),
max => sprintf($printf_format, $perf->{maximum}),
min => defined($perf->{minimum}) ? sprintf($printf_format, $perf->{minimum}) : undef,
max => defined($perf->{maximum}) ? sprintf($printf_format, $perf->{maximum}) : undef,
);
}
}