diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 15:49:26 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 15:49:26 +0200 |
commit | 811da10fda11b1d0453453040647270700862d8f (patch) | |
tree | b0060f09613b1cf088be92c9a6cf63b65db5dfc2 /plugins/check_load.c | |
parent | f855c5b5bbbc6d5436741fd8108be64825a3c76b (diff) | |
download | monitoring-plugins-811da10fda11b1d0453453040647270700862d8f.tar.gz |
More refactoring
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r-- | plugins/check_load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c index f7a6f7fd..644cd604 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
@@ -452,8 +452,8 @@ static top_processes_result print_top_consuming_processes(unsigned long n_procs_ | |||
452 | top_processes_result result = { | 452 | top_processes_result result = { |
453 | .errorcode = OK, | 453 | .errorcode = OK, |
454 | }; | 454 | }; |
455 | struct output chld_out; | 455 | output chld_out; |
456 | struct output chld_err; | 456 | output chld_err; |
457 | if (np_runcmd(PS_COMMAND, &chld_out, &chld_err, 0) != 0) { | 457 | if (np_runcmd(PS_COMMAND, &chld_out, &chld_err, 0) != 0) { |
458 | fprintf(stderr, _("'%s' exited with non-zero status.\n"), PS_COMMAND); | 458 | fprintf(stderr, _("'%s' exited with non-zero status.\n"), PS_COMMAND); |
459 | result.errorcode = ERROR; | 459 | result.errorcode = ERROR; |