diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-14 17:29:39 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-14 17:37:56 +0100 |
commit | 3c42f7af6a23de3f135235521318301e5b34f2de (patch) | |
tree | 74a2505c66e5bd590d61b64e7393cf016d9be284 /lib/slab.c | |
parent | 4e60b3ee7270a432357e203824a7d519a3134f01 (diff) |
Slab memory allocator unit test
Diffstat (limited to 'lib/slab.c')
-rw-r--r-- | lib/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |