add proc_mem.resident (same as rss)
This commit is contained in:
parent
d146b6bb65
commit
85527ccbf1
|
@ -582,7 +582,7 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
|
||||||
|
|
||||||
procmem->size = pinfo->pr_size << 10;
|
procmem->size = pinfo->pr_size << 10;
|
||||||
procmem->rss = pinfo->pr_rssize << 10;
|
procmem->rss = pinfo->pr_rssize << 10;
|
||||||
procmem->resident = SIGAR_FIELD_NOTIMPL;
|
procmem->resident = procmem->rss;
|
||||||
procmem->vsize = SIGAR_FIELD_NOTIMPL;
|
procmem->vsize = SIGAR_FIELD_NOTIMPL;
|
||||||
procmem->share = SIGAR_FIELD_NOTIMPL;
|
procmem->share = SIGAR_FIELD_NOTIMPL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue