summaryrefslogtreecommitdiff
path: root/lib/slab.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-14 17:29:39 +0100
committerMaria Matejka <mq@ucw.cz>2022-03-14 17:37:56 +0100
commit3c42f7af6a23de3f135235521318301e5b34f2de (patch)
tree74a2505c66e5bd590d61b64e7393cf016d9be284 /lib/slab.c
parent4e60b3ee7270a432357e203824a7d519a3134f01 (diff)
Slab memory allocator unit test
Diffstat (limited to 'lib/slab.c')
-rw-r--r--lib/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slab.c b/lib/slab.c
index 9be9844d..9e0f7798 100644
--- a/lib/slab.c
+++ b/lib/slab.c
@@ -394,7 +394,7 @@ slab_memsize(resource *r)
WALK_LIST(h, s->empty_heads)
heads++;
- size_t eff = items * s->obj_size;
+ size_t eff = items * s->data_size;
return (struct resmem) {
.effective = eff,