aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/testutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
index 172ce61..910d116 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -313,6 +313,7 @@ int select_pool_counter(unsigned int counter, unsigned long pagesize,
* read /proc/meminfo.
*/
default_size = file_read_ulong("/proc/meminfo", "Hugepagesize:");
+ default_size *= 1024; /* Convert from kB to B */
if (default_size < 0) {
ERROR("Cannot determine the default page size\n");
return -1;