diff options
author | David Zarzycki <dave@znu.io> | 2021-01-07 08:38:18 -0500 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-11 20:27:47 +0100 |
commit | 37e186fd6626e83f51d0267052677355575964d4 (patch) | |
tree | c3212ebbc5a948c4ede190defadd8f56e097d45b /solaris/Platform.c | |
parent | f4404effa45ce378a8a72f2fff9641c7d7a0cc6f (diff) |
Linux: Add SwapCached to the swap meter
According to the Linux kernel documentation, "SwapCached" tracks "memory
that once was swapped out, is swapped back in but still also is
in the swapfile (if memory is needed it doesn't need to be swapped out
AGAIN because it is already in the swapfile. This saves I/O)."
Diffstat (limited to 'solaris/Platform.c')
-rw-r--r-- | solaris/Platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c index 968e0133..45f16238 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -223,6 +223,7 @@ void Platform_setSwapValues(Meter* this) { const ProcessList* pl = this->pl; this->total = pl->totalSwap; this->values[0] = pl->usedSwap; + this->values[1] = NAN; } void Platform_setZfsArcValues(Meter* this) { |