diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:20 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:20 +0200 |
commit | 85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (patch) | |
tree | 681fd9b2d9fa80931b2a8bec4bb6667865b7c569 /SwapMeter.c | |
parent | ea859f50d9438bc61ae96721a4d255b49de78653 (diff) | |
download | debian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.tar.gz debian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.tar.bz2 debian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.zip |
Imported Upstream version 0.6.3upstream/0.6.3
Diffstat (limited to 'SwapMeter.c')
-rw-r--r-- | SwapMeter.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <assert.h> -/* 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); |