diff options
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_procs.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -222,3 +222,4 @@ Ask Bjoern Hansen Daniel Bimschas Aurelien Bompard Christoph Schell +Andrew Elwell diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 2e283284..f5dc45df 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -185,7 +185,7 @@ main (int argc, char **argv) cols = sscanf (input_line, PS_FORMAT, PS_VARLIST); /* Zombie processes do not give a procprog command */ - if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) { + if ( cols < expected_cols && strstr(procstat, zombie) ) { cols = expected_cols; } if ( cols >= expected_cols ) { |