summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-09-07 12:24:32 +0200
committercgzones <cgzones@googlemail.com>2020-09-24 18:06:36 +0200
commit3c65d78d77e43de12284417012fad2d8c195770e (patch)
tree77854c971c13784e9e734aecc1aaf5213fc8f98c /unsupported
parentebcf92464353d44c1d01b5afd286314415a66c96 (diff)
Update CPU freq display to use NAN on error
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 420dfb78..20df3376 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -6,6 +6,8 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
+#include <math.h>
+
#include "Platform.h"
#include "CPUMeter.h"
#include "MemoryMeter.h"
@@ -105,7 +107,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
(void) cpu;
double* v = this->values;
- v[CPU_METER_FREQUENCY] = -1;
+ v[CPU_METER_FREQUENCY] = NAN;
return 0.0;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy