diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-15 09:54:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-15 09:54:27 +0100 |
| commit | 67160010028681c7fe2461459a9fecc33a7e4dbf (patch) | |
| tree | b2b5c530a4a565277000dcb09c98da1cb8adde00 | |
| parent | 46563cea2b56b28b913cdb1c0493e6ee978fa134 (diff) | |
| parent | 3e8cef3721533b124a765f7f320312434611afc3 (diff) | |
| download | monitoring-plugins-67160010028681c7fe2461459a9fecc33a7e4dbf.tar.gz | |
Compute numbers in output summary correctly
| -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 62e1366d..d650a3c5 100644 --- a/lib/output.c +++ b/lib/output.c | |||
| @@ -175,7 +175,7 @@ char *get_subcheck_summary(mp_check check) { | |||
| 175 | unsigned int critical = 0; | 175 | unsigned int critical = 0; |
| 176 | unsigned int unknown = 0; | 176 | unsigned int unknown = 0; |
| 177 | while (subchecks != NULL) { | 177 | while (subchecks != NULL) { |
| 178 | switch (subchecks->subcheck.state) { | 178 | switch (mp_compute_subcheck_state(subchecks->subcheck)) { |
| 179 | case STATE_OK: | 179 | case STATE_OK: |
| 180 | ok++; | 180 | ok++; |
| 181 | break; | 181 | break; |
