summaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-22 20:02:01 +0100
committerChristian Goettsche <cgzones@googlemail.com>2021-02-05 16:32:25 +0100
commitfd2a0cf4219ac6b000e3ef46e1958edd2ff41a67 (patch)
tree1c556519ebb1c235f2e8954e2de25d35dd1c2582 /freebsd/Platform.c
parent64a1ab848f4cba7b9dd4705a169034e39048d27d (diff)
FreeBSD: add support for CPU frequency and temperature
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r--freebsd/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index 9f8c051f..1f6189ef 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -209,8 +209,8 @@ double Platform_setCPUValues(Meter* this, int cpu) {
percent = CLAMP(percent, 0.0, 100.0);
- v[CPU_METER_FREQUENCY] = NAN;
- v[CPU_METER_TEMPERATURE] = NAN;
+ v[CPU_METER_FREQUENCY] = cpuData->frequency;
+ v[CPU_METER_TEMPERATURE] = cpuData->temperature;
return percent;
}

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