diff --git a/core/init.c b/core/init.c index 918428ea..0b14d8e8 100644 --- a/core/init.c +++ b/core/init.c @@ -268,7 +268,7 @@ void uwsgi_setup_workers() { total_memory *= (uwsgi.numproc + uwsgi.master_process); if (uwsgi.numproc > 0) - uwsgi_log("mapped %lu bytes (%lu KB) for %d cores\n", total_memory, total_memory / 1024, uwsgi.cores * uwsgi.numproc); + uwsgi_log("mapped %llu bytes (%llu KB) for %d cores\n", (unsigned long long) total_memory, (unsigned long long) (total_memory / 1024), uwsgi.cores * uwsgi.numproc); } diff --git a/tests/websockets.py b/tests/websockets.py index 7278b3a2..45fb5b36 100644 --- a/tests/websockets.py +++ b/tests/websockets.py @@ -1,3 +1,4 @@ +#!./uwsgi --https :8443,foobar.crt,foobar.key --http-raw-body --gevent 100 --channel room001 --processes 4 --module tests.websocket import uwsgi import time