summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-05-19 09:18:20 +0200
committerGitHub <noreply@github.com>2026-05-19 09:18:20 +0200
commit5ccce854954e807e51966b3db9388bf20284b949 (patch)
treefda9a8073aa2403828884c5cfc2d517ea309df85 /lib
parent1211edf2eaee9b26eca0505d0708629548e29f6e (diff)
downloadmonitoring-plugins-5ccce854954e807e51966b3db9388bf20284b949.tar.gz
Fix/check load inconsistencies (#2267)
* Remove redundant new line in multi-line outputs * check_load: Fix missing brace in output * check_load: rename function to properly indicate purpose * check_load: show the correct amount of procs * check_load: allow execution without parameters --------- Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.c b/lib/output.c
index 54d505d9..3c04d63d 100644
--- a/lib/output.c
+++ b/lib/output.c
@@ -420,7 +420,7 @@ static inline char *fmt_subcheck_output(mp_output_format output_format, mp_subch
420 // add the rest (if any) 420 // add the rest (if any)
421 if (have_residual_chars) { 421 if (have_residual_chars) {
422 char *tmp = check.output; 422 char *tmp = check.output;
423 xasprintf(&check.output, "%s\n%s%s", intermediate_string, 423 xasprintf(&check.output, "%s%s%s", intermediate_string,
424 generate_indentation_string(indentation + 1), tmp); 424 generate_indentation_string(indentation + 1), tmp);
425 } else { 425 } else {
426 check.output = intermediate_string; 426 check.output = intermediate_string;