From 26f7173923c0b4cb6c7e13c3adcf4dcc18c01d3b Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:24:20 +0200 Subject: check_ups: fix some unintented fallthroughs (#2294) --- plugins/check_ups.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/check_ups.c') diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 7bced308..525ecf24 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c @@ -630,14 +630,19 @@ check_ups_config_wrapper process_arguments(int argc, char **argv) { switch (test_selection) { case UPS_UTILITY: result.config.utility_thresholds = tmp_thr; + break; case UPS_BATTPCT: result.config.battery_thresholds = tmp_thr; + break; case UPS_LOADPCT: result.config.load_thresholds = tmp_thr; + break; case UPS_REALPOWER: result.config.real_power_thresholds = tmp_thr; + break; case UPS_TEMP: result.config.temperature_thresholds = tmp_thr; + break; case UPS_NONE: case UPS_STATUS: default: { -- cgit v1.2.3-74-g34f1