aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2018-06-14 00:10:16 +0000
committerAllan Jude <allanjude@FreeBSD.org>2018-06-14 00:10:16 +0000
commit21e289d49b00a1030a05386b9270e5bb4c5c38d6 (patch)
tree40ee068919414fe732312dcfe883fac2d1ffc79d /usr.bin/top
parent67b3b4d24524d576665f893bffd1ad722887644b (diff)
downloadsrc-21e289d49b00a1030a05386b9270e5bb4c5c38d6.tar.gz
src-21e289d49b00a1030a05386b9270e5bb4c5c38d6.zip
Fix top(1) support for displaying ZFS Compressed ARC statistics
Broken in r334514 sysctlbyname("vfs.zfs.compressed_arc_enabled", ...) would return ENOMEM while trying to read the sysctl (a boolean_t) into a bool, which is too small. Reviewed by: jhb (on irc) Sponsored by: Klara Systems
Notes
Notes: svn path=/head/; revision=335099
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 88d533d3e37a..27331be0270e 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -304,7 +304,7 @@ machine_init(struct statics *statics)
{
int i, j, empty, pagesize;
uint64_t arc_size;
- bool carc_en;
+ int carc_en;
size_t size;
size = sizeof(smpmode);