Fix wrong return state in threshold function

This commit is contained in:
Lorenz Kästle 2025-03-30 22:36:38 +02:00
parent 6e108cc25e
commit 0205694ce9

View file

@ -51,7 +51,7 @@ mp_state_enum mp_get_pd_status(mp_perfdata perfdata) {
}
if (perfdata.warn_present) {
if (mp_check_range(perfdata.value, perfdata.warn)) {
return STATE_CRITICAL;
return STATE_WARNING;
}
}