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

@@ -178,20 +178,6 @@ get_boot_time(glibtop *server)
}
size_t
get_page_size(void)
{
static size_t pagesize = 0;
if(G_UNLIKELY(!pagesize))
{
pagesize = getpagesize();
}
return pagesize;
}
gboolean
check_cpu_line(glibtop *server, const char *line, unsigned i)