Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111652657
D11693.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D11693.diff
View Options
Index: head/usr.bin/top/machine.c
===================================================================
--- head/usr.bin/top/machine.c
+++ head/usr.bin/top/machine.c
@@ -328,14 +328,15 @@
size != sizeof(smpmode))
smpmode = 0;
- size = sizeof(carc_en);
- if (sysctlbyname("vfs.zfs.compressed_arc_enabled", &carc_en, &size,
- NULL, 0) == 0 && carc_en == 1)
- carc_enabled = 1;
size = sizeof(arc_size);
if (sysctlbyname("kstat.zfs.misc.arcstats.size", &arc_size, &size,
NULL, 0) == 0 && arc_size != 0)
arc_enabled = 1;
+ size = sizeof(carc_en);
+ if (arc_enabled &&
+ sysctlbyname("vfs.zfs.compressed_arc_enabled", &carc_en, &size,
+ NULL, 0) == 0 && carc_en == 1)
+ carc_enabled = 1;
if (do_unames) {
while ((pw = getpwent()) != NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 1:24 PM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17033034
Default Alt Text
D11693.diff (781 B)
Attached To
Mode
D11693: Fix top output when zfs.ko is loaded but no ZFS filesystems are in use
Attached
Detach File
Event Timeline
Log In to Comment