diff options
author | Ximalas <trond.endrestol@ximalas.info> | 2023-05-09 12:48:49 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-05-09 15:19:36 +0200 |
commit | 508d9ce5dcda45a33bd31d49cab19566c9cdcc89 (patch) | |
tree | 051ef9abc708cbbb3b609635fa90c591a1c42abc /freebsd/Platform.c | |
parent | e40daf929e8416f8ca272fd286156a0639bb1dbd (diff) |
Build fixes for FreeBSD
Part of a series of changes to get rid of errors and warnings.
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r-- | freebsd/Platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 0588b0fa..a2dc072c 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -209,7 +209,7 @@ double Platform_setCPUValues(Meter* this, unsigned int cpu) { v[CPU_METER_NICE] = cpuData->nicePercent; v[CPU_METER_NORMAL] = cpuData->userPercent; - if (super->settings->detailedCPUTime) { + if (host->settings->detailedCPUTime) { v[CPU_METER_KERNEL] = cpuData->systemPercent; v[CPU_METER_IRQ] = cpuData->irqPercent; this->curItems = 4; @@ -240,11 +240,11 @@ void Platform_setMemoryValues(Meter* this) { this->values[MEMORY_METER_CACHE] = host->cachedMem; // this->values[MEMORY_METER_AVAILABLE] = "available memory" - if (dhost->zfs.enabled) { + if (fhost->zfs.enabled) { // ZFS does not shrink below the value of zfs_arc_min. unsigned long long int shrinkableSize = 0; - if (dhost->zfs.size > dhost->zfs.min) - shrinkableSize = dhost->zfs.size - dhost->zfs.min; + if (fhost->zfs.size > fhost->zfs.min) + shrinkableSize = fhost->zfs.size - fhost->zfs.min; this->values[MEMORY_METER_USED] -= shrinkableSize; this->values[MEMORY_METER_CACHE] += shrinkableSize; // this->values[MEMORY_METER_AVAILABLE] += shrinkableSize; |