Fixed unit of vsize and resident.

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

svn path=/branches/gnome-2-20/; revision=2695
This commit is contained in:
Benoît Dejean
2008-01-05 13:26:25 +00:00
parent bc663ee02f
commit 94e09c586a

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->rss_rlim = pinfo [0].ki_rssize;
buf->vsize = buf->size = (guint64) buf->vsize = buf->size = (guint64)
(pinfo [0].ki_size / 1024); pinfo [0].ki_size;
buf->resident = buf->rss = (guint64) buf->resident = buf->rss = (guint64)
ps_pgtok (pinfo [0].ki_rssize); ps_pgtok (pinfo [0].ki_rssize) * 1024;
/* Now we get the shared memory. */ /* Now we get the shared memory. */