Merge pull request #2222 from RincewindsHat/fix/summary_counts
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Spellcheck / codespell (push) Waiting to run
Tests / Running unit and integrationt tests (push) Waiting to run
Tests / Running rpm build test on almalinux:9 (push) Waiting to run
Tests / Running rpm build test on fedora:latest (push) Waiting to run
Tests / Running rpm build test on rockylinux:8 (push) Waiting to run

Compute numbers in output summary correctly
This commit is contained in:
Lorenz Kästle 2026-01-15 09:54:27 +01:00 committed by GitHub
commit 6716001002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;