From 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:18 +0200 Subject: Imported Upstream version 0.5.4 --- LoadAverageMeter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LoadAverageMeter.c') 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); -- cgit v1.2.3