account for context in static allocation figure
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
9b09dc0213
commit
f27034201f
1 changed files with 1 additions and 0 deletions
|
@ -1592,6 +1592,7 @@ libwebsocket_create_context(int port, const char *interf,
|
|||
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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue