diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-28 12:23:07 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-29 10:44:42 +0200 |
commit | 6db2d52261d676a378625a24c307fa718025bc5f (patch) | |
tree | aee3ae4218543b0c5b7abc8b04b93b2c3dcbb33b /CPUMeter.c | |
parent | 843949131aa75312086bea6a50408e09d82f5209 (diff) |
Covert Meter attributes to file-local constant arrays
Diffstat (limited to 'CPUMeter.c')
-rw-r--r-- | CPUMeter.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -16,8 +16,15 @@ in the source distribution for its full text. #include <string.h> #include <math.h> -int CPUMeter_attributes[] = { - CPU_NICE, CPU_NORMAL, CPU_SYSTEM, CPU_IRQ, CPU_SOFTIRQ, CPU_STEAL, CPU_GUEST, CPU_IOWAIT +static const int CPUMeter_attributes[] = { + CPU_NICE, + CPU_NORMAL, + CPU_SYSTEM, + CPU_IRQ, + CPU_SOFTIRQ, + CPU_STEAL, + CPU_GUEST, + CPU_IOWAIT }; static void CPUMeter_init(Meter* this) { |