summaryrefslogtreecommitdiffstats
path: root/LoadAverageMeter.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 /LoadAverageMeter.c
parent843949131aa75312086bea6a50408e09d82f5209 (diff)
Covert Meter attributes to file-local constant arrays
Diffstat (limited to 'LoadAverageMeter.c')
-rw-r--r--LoadAverageMeter.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/LoadAverageMeter.c b/LoadAverageMeter.c
index db397b6c..3f75aeca 100644
--- a/LoadAverageMeter.c
+++ b/LoadAverageMeter.c
@@ -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]);

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