Fixed unit of vsize and resident.

Patch by Kuang-che Wu <kcwu@csie.org>.
Closes #506889.

svn path=/trunk/; revision=2697
This commit is contained in:
Benoît Dejean
2008-01-05 13:45:17 +00:00
parent 57b1547333
commit 86ace13645

View File

@@ -98,9 +98,9 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->rss_rlim = pinfo [0].ki_rssize;
buf->vsize = buf->size = (guint64)
(pinfo [0].ki_size / 1024);
pinfo [0].ki_size;
buf->resident = buf->rss = (guint64)
ps_pgtok (pinfo [0].ki_rssize);
ps_pgtok (pinfo [0].ki_rssize) * 1024;
/* Now we get the shared memory. */