From 4b0600d8f8f1f6aaae6fc2e59e8697ff8779cf64 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Fri, 9 Aug 2019 21:34:48 -0700 Subject: 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. --- CPUMeter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CPUMeter.h') 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; -- cgit v1.2.3