diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-06 13:13:16 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-03-04 23:57:45 +0100 |
commit | 2d1042adb382aa95456beff31b40abb7196567a0 (patch) | |
tree | 29e1a48c2927ce887a777b20847efae16b73c977 /SwapMeter.c | |
parent | 23c5b9ce3c50a7c7aaa9a5734cad50d12610d8d8 (diff) |
Save text buffer in Meter
Diffstat (limited to 'SwapMeter.c')
-rw-r--r-- | SwapMeter.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |