$OpenBSD: patch-stats_h,v 1.3 2019/02/24 15:02:19 sthen Exp $
Index: stats.h
--- stats.h.orig
+++ stats.h
@@ -30,10 +30,12 @@
 #include <sys/audioio.h>
 #include <sys/ioctl.h>
 #include <sys/param.h>
+#include <sys/mount.h>
 #include <sys/sched.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
 #include <sys/swap.h>
+#include <sys/vmmeter.h>
 
 #include "xstatbar.h"
 
@@ -74,6 +76,8 @@ typedef struct {
 
    int       swap_used;    /* swap space used */
    int       swap_total;   /* total amount of swap space */
+   
+   int      *cpu_online;   /* ncpu */
 
    /* cpu/memory historical stuff (for graphs) */
 
@@ -84,6 +88,7 @@ typedef struct {
 #define MEM_ACT 0
 #define MEM_TOT 1
 #define MEM_FRE 2
+#define MEM_CCH 3
    int        **memory;    /* [hist_size][3] */
    int      ***cpu_pcnts;  /* [ncpu][hist_size][CPUSTATES] */
    uint64_t ***cpu_raw;    /* [ncpu][hist_size][CPUSTATES] */
