Do not cache getpagesize(), it is already.

This commit is contained in:
Benoît Dejean
2016-06-21 05:48:48 +02:00
parent b0ab056e99
commit 7afc81f99d
4 changed files with 2 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
pid_t pid)
{
char buffer [BUFSIZ], *p;
const size_t pagesize = get_page_size();
const size_t pagesize = getpagesize();
memset (buf, 0, sizeof (glibtop_proc_segment));