Fix failed to build without 'LARGEMEM'
Linux performance monitoring on-screen or to CSV file
Brought to you by:
nigelgriffiths
Build failed with:
lmon16i.c: In function ‘main’:
lmon16i.c:6636:13: error: ‘struct mem_stat’ has no member named ‘hugetotal’; did you mean ‘hightotal’?
lmon16i.c:6637:17: error: ‘struct mem_stat’ has no member named ‘hugetotal’; did you mean ‘hightotal’?
lmon16i.c:6637:36: error: ‘struct mem_stat’ has no member named ‘hugefree’; did you mean ‘highfree’?
Fix:
--- lmon16i.c.orig 2019-02-05 23:55:22.000000000 +0800
+++ lmon16i.c 2019-03-29 13:12:37.754943219 +0800
@@ -6628,6 +6628,7 @@
p->mem.hugesize = 16*1024;
*/
}
+#ifdef LARGEMEM
if (show_large) {
proc_read(P_MEMINFO);
proc_mem();
@@ -6669,6 +6670,7 @@
}
}
}
+#endif
if (show_vm) {
#define VMDELTA(variable) (p->vm.variable - q->vm.variable)
#define VMCOUNT(variable) (p->vm.variable )