summaryrefslogtreecommitdiff
path: root/lib/slab.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-14 17:38:25 +0100
committerMaria Matejka <mq@ucw.cz>2022-03-14 17:38:25 +0100
commitb4336b0880dee2a039ca55321f4344444512f97d (patch)
treef85b1f09e69ca87c9cfbdcb8d52817f974412a50 /lib/slab.c
parent41572e0c1b53e3aee6e84a2daada97c5f7620697 (diff)
parent3c42f7af6a23de3f135235521318301e5b34f2de (diff)
Merge branch 'haugesund-to-2.0' into HEAD
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,