projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d7869
)
account for context in static allocation figure
31/3031/1
author
Andy Green
<andy.green@linaro.org>
Fri, 8 Feb 2013 04:53:27 +0000
(12:53 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:32 +0000
(13:01 -0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
131e5e7
..
dc21b6b
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-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));