diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:09:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-15 16:09:40 +0200 |
commit | 601a48a63e745817cf2a4c7f3ca526e393dd3fb8 (patch) | |
tree | ed011d8f2bfcde8750bca64c0f69407df4bd6444 /plugins/check_load.c | |
parent | 8ef825d85fb4d09c32ca44c545d6eb8d995ddea4 (diff) | |
parent | 15ecdb73ce5cda54f824e5a63ee8e801bf16a996 (diff) | |
download | monitoring-plugins-601a48a63e745817cf2a4c7f3ca526e393dd3fb8.tar.gz |
Merge pull request #2150 from RincewindsHat/refactor/lib
general refactorin in lib, more local variables, real booleans
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; |