summaryrefslogtreecommitdiffstats
path: root/solaris/Platform.c
diff options
context:
space:
mode:
authorDominik Hassler <hadfl@omnios.org>2024-01-11 17:44:34 +0000
committerBenBE <BenBE@geshi.org>2024-01-11 20:31:17 +0100
commit046b6ce4663b65176344f1a24a7adccb75784c2c (patch)
tree40b1daea7612177850d40f8766d7dbc06feeab56 /solaris/Platform.c
parente59176f23cfdf40fe078e55835d61464f80d092b (diff)
fixes for illumos/Solaris platforms
Diffstat (limited to 'solaris/Platform.c')
-rw-r--r--solaris/Platform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c
index 5faa91ae..3934f789 100644
--- a/solaris/Platform.c
+++ b/solaris/Platform.c
@@ -220,7 +220,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;
@@ -258,13 +258,13 @@ void Platform_setSwapValues(Meter* this) {
}
void Platform_setZfsArcValues(Meter* this) {
- const SolarisMachine* shost = (SolarisMachine*) this->host;
+ const SolarisMachine* shost = (const SolarisMachine*) this->host;
ZfsArcMeter_readStats(this, &shost->zfs);
}
void Platform_setZfsCompressedArcValues(Meter* this) {
- const SolarisMachine* shost = (SolarisMachine*) this->host;
+ const SolarisMachine* shost = (const SolarisMachine*) this->host;
ZfsCompressedArcMeter_readStats(this, &shost->zfs);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy