From d8e1480a27e1e26b8dfa97681bf8e7f90946d336 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 22 Nov 2010 12:40:20 +0000 Subject: Remove arbitrary limit from rich strings Fix subtree hiding Fix reading of CPU values in hidden threads Fix hiding of zombie processes as kernel threads Remove "debug proc" code Code cleanup in processElements --- SwapMeter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index 0f42e080..ecbd129a 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -34,8 +34,7 @@ static void SwapMeter_display(Object* cast, RichString* out) { char buffer[50]; Meter* this = (Meter*)cast; long int swap = (long int) this->values[0]; - RichString_init(out); - RichString_append(out, CRT_colors[METER_TEXT], ":"); + RichString_write(out, CRT_colors[METER_TEXT], ":"); sprintf(buffer, "%ldM ", (long int) this->total / 1024); RichString_append(out, CRT_colors[METER_VALUE], buffer); sprintf(buffer, "%ldk", swap); -- cgit v1.2.3