From 3d4fe51dd1c1065050dafe4047b54fa34efa21f8 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 8 Sep 2025 07:55:13 +0200 Subject: [PATCH] freelist: External utilization --- freelist/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/freelist/main.c b/freelist/main.c index 49aa19b..0fde246 100644 --- a/freelist/main.c +++ b/freelist/main.c @@ -29,6 +29,7 @@ int main() { printf("Item size: %lu\n", sizeof(Vec3)); printf("Buffer size: %d\n", BUFFER_SIZE); printf("Space utilization internal: %.2f%%\n", 100.0 * fl_utilization(&fl, sizeof(Vec3))); + printf("Space utilization external: %.2f%%\n", 100.0 * ((float)fl.size * cap) / BUFFER_SIZE); assert(fl_available(&fl) == cap);