From c25b290b2041da7672bed15d35f401dde0b75c2c Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 4 May 2016 15:59:27 +0800 Subject: [PATCH] stats upgrade rx tx to long long Signed-off-by: Andy Green --- lib/libwebsockets.c | 4 ++-- lib/private-libwebsockets.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 400f6559..b2046ba7 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -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" diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 7e131a62..23f8f4dd 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -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;