misc: adapt 3 programs to some enum changes, <meminfo>
That preceding commit corrected a little mismanagement regarding the MEMINFO_MEM_CACHED enumerator, which was used in the following programs: free, top plus vmstat. This patch simply adapts those programs to use the new MEMINFO_MEM_CACHED_ALL enumerator, which reflects both the 'Cached' plus 'SReclaimable' values they expected. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
4
vmstat.c
4
vmstat.c
@@ -124,7 +124,7 @@ static enum meminfo_item Mem_items[] = {
|
||||
MEMINFO_MEM_ACTIVE,
|
||||
MEMINFO_MEM_INACTIVE,
|
||||
MEMINFO_MEM_BUFFERS,
|
||||
MEMINFO_MEM_CACHED
|
||||
MEMINFO_MEM_CACHED_ALL
|
||||
};
|
||||
enum Rel_memitems {
|
||||
mem_SUS, mem_FREE, mem_ACT, mem_INA, mem_BUF, mem_CAC, MAX_mem
|
||||
@@ -191,7 +191,7 @@ static enum meminfo_item Sum_mem_items[] = {
|
||||
MEMINFO_MEM_INACTIVE,
|
||||
MEMINFO_MEM_FREE,
|
||||
MEMINFO_MEM_BUFFERS,
|
||||
MEMINFO_MEM_CACHED,
|
||||
MEMINFO_MEM_CACHED_ALL,
|
||||
MEMINFO_SWAP_TOTAL,
|
||||
MEMINFO_SWAP_USED,
|
||||
MEMINFO_SWAP_FREE,
|
||||
|
||||
Reference in New Issue
Block a user