top: avoid an unnecessary conversion for 'USED' column
authorJim Warner <james.warner@comcast.net>
Fri, 31 Jul 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 6 Aug 2015 11:56:02 +0000 (21:56 +1000)
commit8226ca983856d2d023dc52e5d56ec92552b5bf18
tree9a7a5967b376fd4c4aac100f9723a86ebdcbe441
parent9ba65bad8ef1bb994f3edd45063878daa1beb78c
top: avoid an unnecessary conversion for 'USED' column

When the USED column was introduced the proc_t.vm_swap
& proc_t.resident values were added together. However,
using 'resident' required an additional PROC_FILL flag
not to mention extra conversion of pages to kibibytes.

So now we'll use an already present vm_rss value which
removes any special handling for top's derived column.

And while we're at it we'll trade some more 'resident'
field uses with that more immediately usable 'vm_rss'.

Reference(s):
commit 709785e20bd19dc28546d19c45bb7444a56f88b9

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c