Module: monitoring-plugins
 Branch: master
 Commit: 3e8cef3721533b124a765f7f320312434611afc3
 Author: Lorenz Kästle <[email protected]>
   Date: Wed Jan 14 17:28:51 2026 +0100
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=3e8cef37

Compute numbers in output summary correctly

---

 lib/output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
        unsigned int critical = 0;
        unsigned int unknown = 0;
        while (subchecks != NULL) {
-               switch (subchecks->subcheck.state) {
+               switch (mp_compute_subcheck_state(subchecks->subcheck)) {
                case STATE_OK:
                        ok++;
                        break;

Reply via email to