From 7f95ed8528e574a2da6e6e7a6abdd8bca359e4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 30 Aug 2021 19:24:40 +0200 Subject: [PATCH] NetBSD: simplify Platform_setMemoryValues --- netbsd/Platform.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/netbsd/Platform.c b/netbsd/Platform.c index e2566aee..d75e7f0b 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -260,14 +260,11 @@ double Platform_setCPUValues(Meter* this, int cpu) { void Platform_setMemoryValues(Meter* this) { const ProcessList* pl = this->pl; - long int usedMem = pl->usedMem; - long int buffersMem = pl->buffersMem; - long int cachedMem = pl->cachedMem; this->total = pl->totalMem; - this->values[0] = usedMem; - this->values[1] = buffersMem; + this->values[0] = pl->usedMem; + this->values[1] = pl->buffersMem; // this->values[2] = "shared memory, like tmpfs and shm" - this->values[3] = cachedMem; + this->values[3] = pl->cachedMem; // this->values[4] = "available memory" }