mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
show the amount of memory in use
instead of the amount of address space. work a little harder for wchans
This commit is contained in:
parent
f9bca6a2a4
commit
33514167ed
1 changed files with 3 additions and 3 deletions
6
bin/ps
6
bin/ps
|
@ -25,7 +25,7 @@ BEGIN{
|
|||
|
||||
function statestr(s, wchan)
|
||||
{
|
||||
if(wchan != s && wchan != "?")
|
||||
if(wchan != s && wchan != "?" && wchan != "-")
|
||||
return wchan;
|
||||
t = state[substr(s, 1, 1)];
|
||||
if(t == "")
|
||||
|
@ -71,11 +71,11 @@ function statestr(s, wchan)
|
|||
|
||||
case "${SYSNAME:-`uname`}" in
|
||||
SunOS)
|
||||
/bin/ps -aA -o 'user,pid,stime,time,vsz,s,s,args' | sed 1d |
|
||||
/bin/ps -aA -o 'user,pid,stime,time,rss,s,s,args' | sed 1d |
|
||||
nawk -f /tmp/awk.xxx$$ | sort -n +1
|
||||
;;
|
||||
*)
|
||||
/bin/ps -axww -o 'user,pid,start,time,vsz,stat,wchan,command' | sed 1d |
|
||||
/bin/ps -axww -o 'user,pid,start,time,rss,stat,wchan,command' | sed 1d |
|
||||
awk -f /tmp/awk.xxx$$ | sort -n +1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue