From 1b225cd7a0af03a6349c48326118a287fc36acd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 10 Sep 2020 19:56:33 +0200 Subject: Show CPU temperature in CPU meter Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter. --- darwin/Platform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'darwin') 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); } -- cgit v1.2.3