fix: single-quote awk program in stuck_procs() collector
All checks were successful
Auto-merge docs-only PRs / auto-merge-docs (pull_request) Successful in 2s
All checks were successful
Auto-merge docs-only PRs / auto-merge-docs (pull_request) Successful in 2s
The awk program was double-quoted inside the single-quoted COLLECTOR_SCRIPT, causing $1/$2/$3 to be expanded by the remote shell as empty positional parameters instead of awk field references. This made the D-state process filter silently match nothing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c0b164b2f7
commit
e15f88975f
@ -79,7 +79,7 @@ zombie_count() {
|
||||
|
||||
stuck_procs() {
|
||||
ps -eo stat=,pcpu=,comm= | \
|
||||
awk -v t="$STUCK_PROC_CPU_WARN" "$1 ~ /^D/ && $2+0 >= t+0 {print $3}" | \
|
||||
awk -v t="$STUCK_PROC_CPU_WARN" '\''$1 ~ /^D/ && $2+0 >= t+0 {print $3}'\'' | \
|
||||
paste -sd,
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user