From 7a4b2d91adea3328f686aef8748cde13aa7e5421 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Wed, 29 May 2013 20:59:16 +0200 Subject: unbreak after swapin and swapout were removed from OpenBSD uvm statistics. --- sysdeps/openbsd/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/openbsd/swap.c b/sysdeps/openbsd/swap.c index 4d461337..b30db25b 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) { -- cgit v1.2.1