aboutsummaryrefslogtreecommitdiffstats
path: root/zfs/ZfsArcMeter.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
commit69f439eff387a6ecb52734e400b297a3c85f2285 (patch)
tree2a988b7868b749654796183ba70b4272965da1bf /zfs/ZfsArcMeter.c
parentc55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff)
downloaddebian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.gz
debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.bz2
debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.zip
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'zfs/ZfsArcMeter.c')
-rw-r--r--zfs/ZfsArcMeter.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/zfs/ZfsArcMeter.c b/zfs/ZfsArcMeter.c
index 91dfc71..7653a35 100644
--- a/zfs/ZfsArcMeter.c
+++ b/zfs/ZfsArcMeter.c
@@ -5,14 +5,17 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include "ZfsArcMeter.h"
-#include "ZfsArcStats.h"
+#include "zfs/ZfsArcMeter.h"
+
+#include <stddef.h>
#include "CRT.h"
#include "Object.h"
#include "Platform.h"
#include "RichString.h"
+#include "zfs/ZfsArcStats.h"
+
static const int ZfsArcMeter_attributes[] = {
ZFS_MFU, ZFS_MRU, ZFS_ANON, ZFS_HEADER, ZFS_OTHER
@@ -33,7 +36,9 @@ void ZfsArcMeter_readStats(Meter* this, const ZfsArcStats* stats) {
this->values[5] = stats->size;
}
-static void ZfsArcMeter_updateValues(Meter* this, char* buffer, size_t size) {
+static void ZfsArcMeter_updateValues(Meter* this) {
+ char* buffer = this->txtBuffer;
+ size_t size = sizeof(this->txtBuffer);
int written;
Platform_setZfsArcValues(this);
@@ -72,7 +77,7 @@ static void ZfsArcMeter_display(const Object* cast, RichString* out) {
RichString_appendAscii(out, CRT_colors[ZFS_OTHER], buffer);
} else {
RichString_writeAscii(out, CRT_colors[METER_TEXT], " ");
- RichString_appendAscii(out, CRT_colors[FAILED_SEARCH], "Unavailable");
+ RichString_appendAscii(out, CRT_colors[FAILED_READ], "Unavailable");
}
}

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