proc_mem.resident = proc_mem.rss

This commit is contained in:
Doug MacEachern 2005-11-01 19:06:31 +00:00
parent 85527ccbf1
commit ac891b330e
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->rss = pinfo->pst_rssize * pagesize; procmem->rss = pinfo->pst_rssize * pagesize;
procmem->resident = procmem->rss;
procmem->share = pinfo->pst_shmsize * pagesize; procmem->share = pinfo->pst_shmsize * pagesize;
return SIGAR_OK; return SIGAR_OK;