ps: exploit the library addition for 'cpu utilization'
This just parallels the top program by adding that new library PIDS_UTILIZATION item to the ps repertoire. It should be noted, however, that the new %CUU field is a little redundant. I mean, ps already has 4 such fields implemented identified as: '%cpu', 'c', 'cp' & 'pcpu'. Oh well, at least the newest one offers a little value added in the form of extra precision. We'll follow the top lead and display results in the form of: '##.###'. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -159,6 +159,7 @@ makEXT(TICS_BEGAN)
|
||||
makEXT(TTY)
|
||||
makEXT(TTY_NAME)
|
||||
makEXT(TTY_NUMBER)
|
||||
makEXT(UTILIZATION)
|
||||
makEXT(VM_DATA)
|
||||
makEXT(VM_RSS_LOCKED)
|
||||
makEXT(VM_RSS)
|
||||
|
Reference in New Issue
Block a user