diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-04 15:31:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 15:31:22 +0100 |
| commit | 7ab5b3ba34128949902cb966ab73d84f8fb4113f (patch) | |
| tree | 27d0d5e7278cfe3ff540f9290c741fc04ce8f394 /lib/output.c | |
| parent | 3ae751ed67bb59c5073e0a160f4125ba2a5ff1e4 (diff) | |
| download | monitoring-plugins-7ab5b3ba34128949902cb966ab73d84f8fb4113f.tar.gz | |
Previously there was a space missing between perfdata from differen sub subchecks which irritated my monitoring system and caused it to interpet two data points as one.
This puts the space back in there.
Diffstat (limited to 'lib/output.c')
| -rw-r--r-- | lib/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.c b/lib/output.c index f283969f..62e1366d 100644 --- a/lib/output.c +++ b/lib/output.c | |||
| @@ -42,7 +42,7 @@ static inline char *fmt_subcheck_perfdata(mp_subcheck check) { | |||
| 42 | 42 | ||
| 43 | while (subchecks != NULL) { | 43 | while (subchecks != NULL) { |
| 44 | if (added > 0) { | 44 | if (added > 0) { |
| 45 | added = asprintf(&result, "%s%s", result, fmt_subcheck_perfdata(subchecks->subcheck)); | 45 | added = asprintf(&result, "%s %s", result, fmt_subcheck_perfdata(subchecks->subcheck)); |
| 46 | } else { | 46 | } else { |
| 47 | // TODO free previous result here? | 47 | // TODO free previous result here? |
| 48 | added = asprintf(&result, "%s", fmt_subcheck_perfdata(subchecks->subcheck)); | 48 | added = asprintf(&result, "%s", fmt_subcheck_perfdata(subchecks->subcheck)); |
