From 37e186fd6626e83f51d0267052677355575964d4 Mon Sep 17 00:00:00 2001 From: David Zarzycki Date: Thu, 7 Jan 2021 08:38:18 -0500 Subject: 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)." --- dragonflybsd/Platform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dragonflybsd') diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 8ce216c1..2abf4de3 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -205,6 +205,7 @@ void Platform_setSwapValues(Meter* this) { const ProcessList* pl = this->pl; this->total = pl->totalSwap; this->values[0] = pl->usedSwap; + this->values[1] = NAN; } char* Platform_getProcessEnv(pid_t pid) { -- cgit v1.2.3