summaryrefslogtreecommitdiffstats
path: root/linux/HugePageMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 13:13:16 +0200
committerBenBE <BenBE@geshi.org>2021-03-04 23:57:45 +0100
commit2d1042adb382aa95456beff31b40abb7196567a0 (patch)
tree29e1a48c2927ce887a777b20847efae16b73c977 /linux/HugePageMeter.c
parent23c5b9ce3c50a7c7aaa9a5734cad50d12610d8d8 (diff)
Save text buffer in Meter
Diffstat (limited to 'linux/HugePageMeter.c')
-rw-r--r--linux/HugePageMeter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/HugePageMeter.c b/linux/HugePageMeter.c
index 242d2857..2a35c125 100644
--- a/linux/HugePageMeter.c
+++ b/linux/HugePageMeter.c
@@ -31,9 +31,11 @@ static const char* const HugePageMeter_labels[] = {
" 1G:", " 2G:", " 4G:", " 8G:", " 16G:", " 32G:", " 64G:", " 128G:", " 256G:", " 512G:",
};
-static void HugePageMeter_updateValues(Meter* this, char* buffer, size_t size) {
+static void HugePageMeter_updateValues(Meter* this) {
assert(ARRAYSIZE(HugePageMeter_labels) == HTOP_HUGEPAGE_COUNT);
+ char* buffer = this->txtBuffer;
+ size_t size = sizeof(this->txtBuffer);
int written;
memory_t usedTotal = 0;
unsigned nextUsed = 0;

© 2014-2024 Faster IT GmbH | imprint | privacy policy