Covert Meter attributes to file-local constant arrays

This commit is contained in:
Christian Göttsche
2020-09-28 12:23:07 +02:00
committed by cgzones
parent 843949131a
commit 6db2d52261
20 changed files with 31 additions and 37 deletions

View File

@ -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) {