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

@ -11,11 +11,15 @@ in the source distribution for its full text.
#include "Platform.h"
int LoadAverageMeter_attributes[] = {
LOAD_AVERAGE_ONE, LOAD_AVERAGE_FIVE, LOAD_AVERAGE_FIFTEEN
static const int LoadAverageMeter_attributes[] = {
LOAD_AVERAGE_ONE,
LOAD_AVERAGE_FIVE,
LOAD_AVERAGE_FIFTEEN
};
int LoadMeter_attributes[] = { LOAD };
static const int LoadMeter_attributes[] = {
LOAD
};
static void LoadAverageMeter_updateValues(Meter* this, char* buffer, int size) {
Platform_getLoadAverage(&this->values[0], &this->values[1], &this->values[2]);