mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 09:40:05 -04:00
Bugfix in output
This commit is contained in:
parent
a0710dbd72
commit
f84f614f21
1 changed files with 7 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
// == Global variables
|
||||
static mp_output_format output_format = MP_FORMAT_DEFAULT;
|
||||
static mp_output_detail_level level_of_detail = MP_DETAIL_ALL;
|
||||
|
||||
// == Prototypes ==
|
||||
static char *fmt_subcheck_output(mp_output_format output_format, mp_subcheck check, unsigned int indentation);
|
||||
|
|
@ -202,7 +203,12 @@ mp_state_enum mp_compute_subcheck_state(const mp_subcheck check) {
|
|||
}
|
||||
|
||||
mp_subcheck_list *scl = check.subchecks;
|
||||
mp_state_enum result = check.default_state;
|
||||
|
||||
if (scl == NULL) {
|
||||
return check.default_state;
|
||||
}
|
||||
|
||||
mp_state_enum result = STATE_OK;
|
||||
|
||||
while (scl != NULL) {
|
||||
result = max_state_alt(result, mp_compute_subcheck_state(scl->subcheck));
|
||||
|
|
|
|||
Loading…
Reference in a new issue