summaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2021-03-18 14:03:51 +0200
committerGitHub <noreply@github.com>2021-03-18 14:03:51 +0200
commitee97916fd530c82b8747bd90b7d1b98e92f858ae (patch)
tree6b2190f138fbeb946ef8c9bd5a49e77e55e9410d /freebsd/Platform.c
parent1ba3915f73e019fe9fd94e53794137060fbf8c66 (diff)
parentfd2a0cf4219ac6b000e3ef46e1958edd2ff41a67 (diff)
Merge pull request #436 from cgzones/freebsd
FreeBSD: add support for CPU frequency and temperature Tested on two physical systems running FreeBSD 12.1
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 1d35819a..e6d90d53 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