stats upgrade rx tx to long long
authorAndy Green <andy@warmcat.com>
Wed, 4 May 2016 07:59:27 +0000 (15:59 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 4 May 2016 07:59:55 +0000 (15:59 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c
lib/private-libwebsockets.h

index 400f65598495de9d061655f5be8b05f67e02eb77..b2046ba7e0f3bc7d18513427726b4b1cfcd5d6a6 100644 (file)
@@ -2380,8 +2380,8 @@ lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
                        " \"port\":\"%d\",\n"
                        " \"use_ssl\":\"%d\",\n"
                        " \"sts\":\"%d\",\n"
-                       " \"rx\":\"%lu\",\n"
-                       " \"tx\":\"%lu\",\n"
+                       " \"rx\":\"%llu\",\n"
+                       " \"tx\":\"%llu\",\n"
                        " \"conn\":\"%lu\",\n"
                        " \"trans\":\"%lu\",\n"
                        " \"ws_upg\":\"%lu\",\n"
index 7e131a62d200aadeea3182a9c1203fc51b876c13..23f8f4dd2b94b640499263ef66f508f87c17476e 100644 (file)
@@ -658,7 +658,8 @@ struct lws_vhost {
 #ifndef LWS_NO_EXTENSIONS
        const struct lws_extension *extensions;
 #endif
-       unsigned long rx, tx, conn, trans, ws_upgrades, http2_upgrades;
+       unsigned long long rx, tx;
+       unsigned long conn, trans, ws_upgrades, http2_upgrades;
 
        int listen_port;
        unsigned int http_proxy_port;