summaryrefslogtreecommitdiffstats
path: root/CPUMeter.h
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2019-08-09 21:34:48 -0700
committerArnavion <arnavion@gmail.com>2019-08-09 21:34:48 -0700
commit4b0600d8f8f1f6aaae6fc2e59e8697ff8779cf64 (patch)
treedb0ed0d99d936058105a431371a3137a5f87dd40 /CPUMeter.h
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Add new display option to also show CPU frequency in CPU meters.
The option is only implemented on Linux. On other platforms, and on Linuxes that do not expose the relevant sysfs file, the frequency will be 0. The "CPU average" meter does not show a frequency, only the individual per-CPU meters.
Diffstat (limited to 'CPUMeter.h')
-rw-r--r--CPUMeter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/CPUMeter.h b/CPUMeter.h
index 2f163968..6f8599a8 100644
--- a/CPUMeter.h
+++ b/CPUMeter.h
@@ -20,7 +20,8 @@ typedef enum {
CPU_METER_STEAL = 5,
CPU_METER_GUEST = 6,
CPU_METER_IOWAIT = 7,
- CPU_METER_ITEMCOUNT = 8, // number of entries in this enum
+ CPU_METER_FREQUENCY = 8,
+ CPU_METER_ITEMCOUNT = 9, // number of entries in this enum
} CPUMeterValues;

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