From 2d1042adb382aa95456beff31b40abb7196567a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 6 Oct 2020 13:13:16 +0200 Subject: Save text buffer in Meter --- SwapMeter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index 81f006ec..fe10eab0 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -18,7 +18,9 @@ static const int SwapMeter_attributes[] = { SWAP_CACHE }; -static void SwapMeter_updateValues(Meter* this, char* buffer, size_t size) { +static void SwapMeter_updateValues(Meter* this) { + char* buffer = this->txtBuffer; + size_t size = sizeof(this->txtBuffer); int written; Platform_setSwapValues(this); -- cgit v1.2.3