diff options
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, |