diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-30 19:24:40 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-03 12:17:45 +0200 |
commit | 7f95ed8528e574a2da6e6e7a6abdd8bca359e4a3 (patch) | |
tree | 0e21963a0f7894f3a439db1c5cd10dc02db50339 /netbsd | |
parent | 9579d9b7aa2cfd68c8c7e033583103022c9a77de (diff) |
NetBSD: simplify Platform_setMemoryValues
Diffstat (limited to 'netbsd')
-rw-r--r-- | netbsd/Platform.c | 9 |
1 files 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" } |