Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=744890
This commit is contained in:
Benoit Dejean
2015-02-28 02:35:02 +01:00
committed by Ting-Wei Lan
parent e6d776ee61
commit 0057bbbc47

View File

@@ -60,8 +60,7 @@ static const unsigned long _glibtop_sysdeps_proc_mem_share =
void
_glibtop_init_proc_mem_p (glibtop *server)
{
server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem |
_glibtop_sysdeps_proc_mem_share;
server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
}
/* Provides detailed information about a process. */
@@ -102,6 +101,8 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->resident = buf->rss = (guint64)
ps_pgtok (pinfo [0].ki_rssize) * 1024;
buf->flags |= _glibtop_sysdeps_proc_mem;
#if 0
/*
* It doesn't make any sense to count as shared each and every mmaped file
@@ -160,7 +161,6 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->share += object.un_pager.vnp.vnp_size;
}
buf->flags = _glibtop_sysdeps_proc_mem |
_glibtop_sysdeps_proc_mem_share;
buf->flags |= _glibtop_sysdeps_proc_mem_share;
#endif
}