FreeBSD: add support for CPU frequency and temperature

This commit is contained in:
Christian Göttsche
2020-12-22 20:02:01 +01:00
committed by Christian Goettsche
parent 64a1ab848f
commit fd2a0cf421
8 changed files with 88 additions and 12 deletions

View File

@ -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;
}