diff options
author | Nathan Scott <nathans@redhat.com> | 2020-11-27 13:22:21 +1100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-11-27 07:55:58 +0100 |
commit | f704baeb8211815f80a166c6837f421a82e1c515 (patch) | |
tree | be935b1d2e39ac409aa7960824bab3cba8fb05a5 /ProcessList.h | |
parent | fee217551c12754db517d1badd448fc9064a48a8 (diff) |
Drop unused global ProcessList memory fields
The global ProcessList structure contains a couple of unused
fields. 'sharedMem' has never been used by any Meter, since
its not been anything other than zero in Linux /proc/meminfo
for many, many years. The freeMem field is only used in the
usedMem calculation, so it can reside on the stack like some
other memory variables used within-calculations-only and not
exposed to the user via a Meter.
Diffstat (limited to 'ProcessList.h')
-rw-r--r-- | ProcessList.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ProcessList.h b/ProcessList.h index a4b0cd6f..24fa89b4 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -60,8 +60,6 @@ typedef struct ProcessList_ { unsigned long long int totalMem; unsigned long long int usedMem; - unsigned long long int freeMem; - unsigned long long int sharedMem; unsigned long long int buffersMem; unsigned long long int cachedMem; unsigned long long int totalSwap; |