diff options
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index 28eb9f3c..97d713ae 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -241,6 +241,12 @@ double Platform_setCPUValues(Meter* this, int cpu) { v[CPU_METER_FREQUENCY] = cpuData->frequency; +#ifdef HAVE_LIBSENSORS + v[CPU_METER_TEMPERATURE] = cpuData->temperature; +#else + v[CPU_METER_TEMPERATURE] = NAN; +#endif + return percent; } |