account for context in static allocation figure 31/3031/1
authorAndy Green <andy.green@linaro.org>
Fri, 8 Feb 2013 04:53:27 +0000 (12:53 +0800)
committerKevron 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

index 131e5e7..dc21b6b 100644 (file)
@@ -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));