Compute numbers in output summary correctly

This commit is contained in:
Lorenz Kästle 2026-01-14 17:28:51 +01:00
parent 46563cea2b
commit 3e8cef3721

View file

@ -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;