Skip to content

Commit f817da7

Browse files
committed
more strict solution for trunk user name bug #62
more discussion see #62
1 parent b0c4359 commit f817da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

show-busy-java-threads

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ for ((i = 0; update_count <= 0 || i < update_count; ++i)); do
237237
[ -n "$append_file" ] && headInfo >> "$append_file"
238238
[ "$update_count" -ne 1 ] && headInfo
239239

240-
ps -Leo pid,lwp -o ruser=${USER} -o comm,pcpu --no-headers | {
240+
ps -Leo pid,lwp,user:80,comm,pcpu --no-headers | {
241241
[ -z "${pid}" ] &&
242242
awk '$4=="java"{print $0}' ||
243243
awk -v "pid=${pid}" '$1==pid,$4=="java"{print $0}'

0 commit comments

Comments
 (0)