From 85bb4ad9cb820ac3b8e935a930084a06cbfd2847 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:20 +0200 Subject: Imported Upstream version 0.6.3 --- SwapMeter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index 7b295e9..e7f827b 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -19,10 +19,10 @@ in the source distribution for its full text. #include "debug.h" #include -/* private property */ -static int SwapMeter_attributes[] = { SWAP }; +int SwapMeter_attributes[] = { + SWAP +}; -/* private */ MeterType SwapMeter = { .setValues = SwapMeter_setValues, .display = SwapMeter_display, @@ -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