aboutsummaryrefslogtreecommitdiffstats
path: root/LoadAverageMeter.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
commit2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch)
treeafaa05858260763c1d25fa092f3905cf51ffd7b2 /LoadAverageMeter.c
parent031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff)
downloaddebian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.gz
debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.bz2
debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.zip
Imported Upstream version 0.5.4upstream/0.5.4
Diffstat (limited to 'LoadAverageMeter.c')
-rw-r--r--LoadAverageMeter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/LoadAverageMeter.c b/LoadAverageMeter.c
index 7add62d..3ef03cb 100644
--- a/LoadAverageMeter.c
+++ b/LoadAverageMeter.c
@@ -31,9 +31,9 @@ void LoadAverageMeter_scan(double* one, double* five, double* fifteen);
LoadAverageMeter* LoadAverageMeter_new() {
LoadAverageMeter* this = malloc(sizeof(LoadAverageMeter));
Meter_init((Meter*)this, String_copy("LoadAverage"), String_copy("Load average: "), 3);
- ((Meter*)this)->attributes[0] = CRT_colors[LOAD_AVERAGE_FIFTEEN];
- ((Meter*)this)->attributes[1] = CRT_colors[LOAD_AVERAGE_FIVE];
- ((Meter*)this)->attributes[2] = CRT_colors[LOAD_AVERAGE_ONE];
+ ((Meter*)this)->attributes[0] = &(CRT_colors[LOAD_AVERAGE_FIFTEEN]);
+ ((Meter*)this)->attributes[1] = &(CRT_colors[LOAD_AVERAGE_FIVE]);
+ ((Meter*)this)->attributes[2] = &(CRT_colors[LOAD_AVERAGE_ONE]);
((Object*)this)->display = LoadAverageMeter_display;
((Meter*)this)->setValues = LoadAverageMeter_setValues;
Meter_setMode((Meter*)this, TEXT);

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