diff options
Diffstat (limited to 'LoadAverageMeter.c')
-rw-r--r-- | LoadAverageMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LoadAverageMeter.c b/LoadAverageMeter.c index 1fbfd4ac..ab06bebd 100644 --- a/LoadAverageMeter.c +++ b/LoadAverageMeter.c @@ -60,7 +60,7 @@ void LoadAverageMeter_setValues(Meter* this, char* buffer, int size) { void LoadAverageMeter_display(Object* cast, RichString* out) { Meter* this = (Meter*)cast; char buffer[20]; - RichString_prune(out); + RichString_init(out); sprintf(buffer, "%.2f ", this->values[2]); RichString_append(out, CRT_colors[LOAD_AVERAGE_FIFTEEN], buffer); sprintf(buffer, "%.2f ", this->values[1]); @@ -81,7 +81,7 @@ void LoadMeter_setValues(Meter* this, char* buffer, int size) { void LoadMeter_display(Object* cast, RichString* out) { Meter* this = (Meter*)cast; char buffer[20]; - RichString_prune(out); + RichString_init(out); sprintf(buffer, "%.2f ", ((Meter*)this)->values[0]); RichString_append(out, CRT_colors[LOAD], buffer); } |