commit - f9bca6a2a402eca55bcd8ea3f17d0051d7b5382e
commit + 33514167ed3bfd7d80c9a08c7c38e52a691d51b1
blob - 25384ccb9dab5fcf7de9296262542acaa59052a9
blob + 7a8cd4e41b9974e68fa281bdbb450dcf4c0b7019
--- bin/ps
+++ bin/ps
function statestr(s, wchan)
{
- if(wchan != s && wchan != "?")
+ if(wchan != s && wchan != "?" && wchan != "-")
return wchan;
t = state[substr(s, 1, 1)];
if(t == "")
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