summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2019-08-10 17:17:45 -0700
committerArnavion <arnavion@gmail.com>2019-08-10 17:17:45 -0700
commit909bb86f05c20f0ec6f5d55994065a293932ce21 (patch)
treea74598e116cbbdb0c5da973734affe596bd9d777 /openbsd
parent43728b37e76e4ed32b04c133ca55e27116cdfa06 (diff)
Show N/A on unsupported platforms instead of 0KHz
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 4bb2e35e..e5a67d9f 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -233,6 +233,8 @@ double Platform_setCPUValues(Meter* this, int cpu) {
perc = v[0] + v[1] + v[2] + v[3];
+ v[CPU_METER_FREQUENCY] = -1;
+
if (perc <= 100. && perc >= 0.) {
return perc;
} else {

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