summaryrefslogtreecommitdiffstats
path: root/lib/thresholds.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 22:36:38 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 22:36:38 +0200
commit0205694ce977af97a71c58e0ae3c431299ceb7bb (patch)
tree2dabea5b743d0f96a7ebde585b58c12c6ce1c091 /lib/thresholds.c
parent6e108cc25e75ec74013838620b26dabdd480718a (diff)
downloadmonitoring-plugins-0205694ce977af97a71c58e0ae3c431299ceb7bb.tar.gz
Fix wrong return state in threshold function
Diffstat (limited to 'lib/thresholds.c')
-rw-r--r--lib/thresholds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thresholds.c b/lib/thresholds.c
index ddefae37..171f5093 100644
--- a/lib/thresholds.c
+++ b/lib/thresholds.c
@@ -51,7 +51,7 @@ mp_state_enum mp_get_pd_status(mp_perfdata perfdata) {
51 } 51 }
52 if (perfdata.warn_present) { 52 if (perfdata.warn_present) {
53 if (mp_check_range(perfdata.value, perfdata.warn)) { 53 if (mp_check_range(perfdata.value, perfdata.warn)) {
54 return STATE_CRITICAL; 54 return STATE_WARNING;
55 } 55 }
56 } 56 }
57 57