summaryrefslogtreecommitdiff
path: root/test/shmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/shmalloc.c')
-rw-r--r--test/shmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/shmalloc.c b/test/shmalloc.c
index 70e0fb5aab..a596d173e7 100644
--- a/test/shmalloc.c
+++ b/test/shmalloc.c
@@ -253,7 +253,7 @@ void run_test(int argc, char **argv)
return;
}
} else {
- size_t alloc_size = r_data % (shmem_size);
+ size_t alloc_size = r_data % (shmem_size / 2);
/*
* If the allocation entry is empty - allocate a