Author: mmacy
Date: Sat Aug 11 22:11:12 2018
New Revision: 337661
URL: https://svnweb.freebsd.org/changeset/base/337661

Log:
  fix top after arc accounting change

Modified:
  head/usr.bin/top/machine.c

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c  Sat Aug 11 22:01:52 2018        (r337660)
+++ head/usr.bin/top/machine.c  Sat Aug 11 22:11:12 2018        (r337661)
@@ -522,8 +522,12 @@ get_system_info(struct system_info *si)
                GETSYSCTL("kstat.zfs.misc.arcstats.hdr_size", arc_stat);
                GETSYSCTL("kstat.zfs.misc.arcstats.l2_hdr_size", arc_stat2);
                arc_stats[4] = (arc_stat + arc_stat2) >> 10;
-               GETSYSCTL("kstat.zfs.misc.arcstats.other_size", arc_stat);
+               GETSYSCTL("kstat.zfs.misc.arcstats.bonus_size", arc_stat);
                arc_stats[5] = arc_stat >> 10;
+               GETSYSCTL("kstat.zfs.misc.arcstats.dnode_size", arc_stat);
+               arc_stats[5] += arc_stat >> 10;
+               GETSYSCTL("kstat.zfs.misc.arcstats.dbuf_size", arc_stat);
+               arc_stats[5] += arc_stat >> 10;
                si->arc = arc_stats;
        }
        if (carc_enabled) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to