diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 00:48:00 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 00:48:00 +0100 |
commit | 54a099ed6d4ae57835095083aa825462eb03f369 (patch) | |
tree | cf7af5c49f0c8ebc5574b0efc1af3871f1717357 /plugins/check_swap.c | |
parent | 89df16e7503539c2b0da7e95375b470559bb94ec (diff) | |
parent | 02acc76edc5c646af90a6168df61c711aa3d11d6 (diff) | |
download | monitoring-plugins-54a099ed6d4ae57835095083aa825462eb03f369.tar.gz |
Merge branch 'master' into refactor/check_tcp
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 4d3b6099..cb95949a 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -93,7 +93,7 @@ int main(int argc, char **argv) { | |||
93 | double percent_used; | 93 | double percent_used; |
94 | mp_check overall = mp_check_init(); | 94 | mp_check overall = mp_check_init(); |
95 | if (config.output_format_is_set) { | 95 | if (config.output_format_is_set) { |
96 | overall.format = config.output_format; | 96 | mp_set_format(config.output_format); |
97 | } | 97 | } |
98 | mp_subcheck sc1 = mp_subcheck_init(); | 98 | mp_subcheck sc1 = mp_subcheck_init(); |
99 | sc1 = mp_set_subcheck_default_state(sc1, STATE_OK); | 99 | sc1 = mp_set_subcheck_default_state(sc1, STATE_OK); |