From dbe2670b69e163cb146d3fc3b3c7b82ea3f71278 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 12 Jul 2006 01:16:03 +0000 Subject: Perform RichString operations by hand. Avoid unnecessary operations when processing entries on ProcessList. --- SwapMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index b66197e1..e7f827be 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -46,7 +46,7 @@ void SwapMeter_display(Object* cast, RichString* out) { char buffer[50]; Meter* this = (Meter*)cast; long int swap = (long int) this->values[0]; - RichString_prune(out); + RichString_init(out); RichString_append(out, CRT_colors[METER_TEXT], ":"); sprintf(buffer, "%ldM ", (long int) this->total / 1024); RichString_append(out, CRT_colors[METER_VALUE], buffer); -- cgit v1.2.3