add support to display CPU frequencies on Solarish platforms

This commit is contained in:
Dominik Hassler
2020-12-24 13:01:23 +00:00
parent 1cc3f8074f
commit 495f2292dc
3 changed files with 27 additions and 14 deletions

View File

@ -205,7 +205,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
percent = isnan(percent) ? 0.0 : CLAMP(percent, 0.0, 100.0);
v[CPU_METER_FREQUENCY] = NAN;
v[CPU_METER_FREQUENCY] = cpuData->frequency;
v[CPU_METER_TEMPERATURE] = NAN;
return percent;