diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-10 19:56:33 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-11-16 16:38:54 +0100 |
commit | 1b225cd7a0af03a6349c48326118a287fc36acd0 (patch) | |
tree | dff0955221e7fce63e2308febbefdd58213d16c3 /darwin/Platform.c | |
parent | 309f1d7282ec8efa4ff6b24a001a4908f5fd28d0 (diff) |
Show CPU temperature in CPU meter
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
Diffstat (limited to 'darwin/Platform.c')
-rw-r--r-- | darwin/Platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index cd505b9d..be71360c 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -224,6 +224,7 @@ double Platform_setCPUValues(Meter* mtr, int cpu) { total = mtr->values[CPU_METER_NICE] + mtr->values[CPU_METER_NORMAL] + mtr->values[CPU_METER_KERNEL]; mtr->values[CPU_METER_FREQUENCY] = NAN; + mtr->values[CPU_METER_TEMPERATURE] = NAN; return CLAMP(total, 0.0, 100.0); } |