openbsd-ports/sysutils/xosview/patches/patch-ae
form 1ef4dfbb87 Update to 1.7.3.
UVM support.
1999-12-04 17:18:08 +00:00

21 lines
864 B
Plaintext

--- bsd/memmeter.cc.orig Sat Dec 4 22:50:10 1999
+++ bsd/memmeter.cc Sat Dec 4 22:52:32 1999
@@ -90,7 +90,7 @@
/* Initialize total_ to 0.0. FreeBSD will then add some to
* this, and later we'll add all the common fields to this. */
total_ = 0.0;
-#if defined(UVM) & defined(XOSVIEW_NETBSD)
+#if defined(UVM) && (defined(XOSVIEW_NETBSD) || defined(XOSVIEW_OPENBSD))
struct uvmexp kvm_uvm_exp;
BSDGetUVMPageStats(&kvm_uvm_exp);
int pgsize = kvm_uvm_exp.pagesize;
@@ -123,7 +123,7 @@
/*total_ = kvm_cnt.v_page_count * pgsize;*/
# endif /* FreeBSD */
fields_[FREE_INDEX] = kvm_cnt.v_free_count * pgsize;
-#endif /* UVM && NetBSD */
+#endif /* UVM && (NetBSD || OpenBSD) */
/* Now add to total_ (the cache pages were counted for FreeBSD
* above). */
total_ += fields_[0] + fields_[1] + fields_[2] + fields_[FREE_INDEX];