[libgtop] Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
- Date: Sun, 21 Jun 2015 02:59:18 +0000 (UTC)
commit 0057bbbc4762389ce3b62604b5194bfcf7ac2fed
Author: Benoit Dejean <bdejean gmail com>
Date: Sat Feb 28 02:35:02 2015 +0100
Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=744890
sysdeps/freebsd/procmem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sysdeps/freebsd/procmem.c b/sysdeps/freebsd/procmem.c
index b11c730..8c5a071 100644
--- a/sysdeps/freebsd/procmem.c
+++ b/sysdeps/freebsd/procmem.c
@@ -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
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]