Put back the old behaviour (no smart pss for now).

svn path=/trunk/; revision=2749
This commit is contained in:
Benoît Dejean
2008-05-24 16:20:01 +00:00
parent 90fc3ca780
commit af81e9be75

View File

@@ -126,10 +126,19 @@ glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid)
buf->resident *= pagesize;
buf->share *= pagesize;
buf->flags |= _glibtop_sysdeps_proc_mem;
/* dummy values */
buf->vsize = buf->size;
buf->rss_rlim = ~0;
buf->flags |= _glibtop_sysdeps_proc_mem;
#if 0
/* FIXME: see previous comment */
if (server->os_version_code >= LINUX_VERSION_CODE(2, 6, 25)) {
buf->rss = get_pss(server, pid);
buf->flags |= _glibtop_sysdeps_proc_mem_pss;
}
#else
buf->rss = buf->resident;
#endif
}