[libgtop] unbreak after swapin and swapout were removed from OpenBSD uvm statistics.
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] unbreak after swapin and swapout were removed from OpenBSD uvm statistics.
- Date: Wed, 29 May 2013 17:03:48 +0000 (UTC)
commit 7a4b2d91adea3328f686aef8748cde13aa7e5421
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Wed May 29 20:59:16 2013 +0200
unbreak after swapin and swapout were removed from OpenBSD uvm statistics.
sysdeps/openbsd/swap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sysdeps/openbsd/swap.c b/sysdeps/openbsd/swap.c
index 4d46133..b30db25 100644
--- a/sysdeps/openbsd/swap.c
+++ b/sysdeps/openbsd/swap.c
@@ -87,12 +87,12 @@ glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
buf->pagein = 0;
buf->pageout = 0;
} else {
- buf->pagein = uvmexp.swapins - swappgsin;
- buf->pageout = uvmexp.swapouts - swappgsout;
+ buf->pagein = uvmexp.pgswapin - swappgsin;
+ buf->pageout = uvmexp.pgswapout - swappgsout;
}
- swappgsin = uvmexp.swapins;
- swappgsout = uvmexp.swapouts;
+ swappgsin = uvmexp.pgswapin;
+ swappgsout = uvmexp.pgswapout;
nswap = swapctl (SWAP_NSWAP, 0, 0);
if (nswap < 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]