summaryrefslogtreecommitdiffstats
path: root/CPUMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-28 12:23:07 +0200
committercgzones <cgzones@googlemail.com>2020-09-29 10:44:42 +0200
commit6db2d52261d676a378625a24c307fa718025bc5f (patch)
treeaee3ae4218543b0c5b7abc8b04b93b2c3dcbb33b /CPUMeter.c
parent843949131aa75312086bea6a50408e09d82f5209 (diff)
Covert Meter attributes to file-local constant arrays
Diffstat (limited to 'CPUMeter.c')
-rw-r--r--CPUMeter.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/CPUMeter.c b/CPUMeter.c
index c5e27124..44ef1add 100644
--- a/CPUMeter.c
+++ b/CPUMeter.c
@@ -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) {

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