diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-28 02:19:24 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-28 02:19:24 +0000 |
commit | f372c78d9fbe854ab488f4acfc8c71b164cfaec9 (patch) | |
tree | f5c9ffd45f4895eae03cfbea56b728787617cfb4 /utils | |
parent | e7c22377e0c27b29dd28f795adb996fa795d1dc8 (diff) |
Formerly ps.c.~2~
Diffstat (limited to 'utils')
-rw-r--r-- | utils/old-ps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/old-ps.c b/utils/old-ps.c index 0ff927e3..d6114ed3 100644 --- a/utils/old-ps.c +++ b/utils/old-ps.c @@ -96,7 +96,7 @@ main () stdout = mach_open_devstream (getdport (1), "w"); #endif - puts ("PID\tUSER\tPP\tPG\tSS\tVMem\tRSS\tPRI\t%CPU\tUser\tSystem\tArgs"); + puts ("PID\tUSER\tPP\tPG\tSS\tThds\tVMem\tRSS\tPRI\t%CPU\tUser\tSystem\tArgs"); proc = getproc (); proc_getallpids (proc, &pp, &npids); for (ind = 0; ind < npids; ind++) @@ -132,12 +132,13 @@ main () tbi.user_time.microseconds %= 1000000; tbi.system_time.seconds += tbi.system_time.microseconds / 1000000; tbi.system_time.microseconds %= 1000000; - printf ("%d\t%d\t%d\t%d\t%d\t%s\t%s\t%d/%d\t%d\t%s\t%s\t", + printf ("%d\t%d\t%d\t%d\t%d\t%d\t%s\t%s\t%d/%d\t%d\t%s\t%s\t", pp[ind], (pi->state & PI_NOTOWNED) ? -1 : pi->owner, pi->ppid, pi->pgrp, pi->session, + pi->nthreads, mem_str (pi->taskinfo.virtual_size), mem_str (pi->taskinfo.resident_size), tsi.base_priority, |