aix swap.page_{in,out} impl

This commit is contained in:
Doug MacEachern 2007-08-01 03:00:59 +00:00
parent 34c15a533b
commit 76e8f77b3d
1 changed files with 6 additions and 0 deletions

View File

@ -644,6 +644,7 @@ static int sigar_swap_get_swapqry(sigar_t *sigar, sigar_swap_t *swap)
static int sigar_swap_get_perfstat(sigar_t *sigar, sigar_swap_t *swap)
{
perfstat_memory_total_t minfo;
perfstat_pagingspace_t ps;
perfstat_id_t id;
@ -679,6 +680,11 @@ static int sigar_swap_get_perfstat(sigar_t *sigar, sigar_swap_t *swap)
swap->free = swap->total - swap->used;
if (sigar->perfstat.mem(&minfo) == 1) {
swap->page_in = minfo.pgins;
swap->page_out = minfo.pgouts;
}
return SIGAR_OK;
}