account for context in static allocation figure
Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 131e5e7..dc21b6b 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -1592,6 +1592,7 @@
context->max_fds = getdtablesize();
lwsl_notice(" max fd tracked: %u\n", context->max_fds);
lwsl_notice(" static allocation: %u bytes\n",
+ sizeof(struct libwebsocket_context) +
(sizeof(struct pollfd) * context->max_fds) +
(sizeof(struct libwebsocket *) * context->max_fds));