BUG/MINOR: stats:Fix incorrect printf type.

The value is defined in include/types/global.h to be an unsigned int.
The type format in the printf is for a signed int. This eventually wraps
around.

WT: This bug was introduced in 1.5.
This commit is contained in:
Warren Turkal 2015-01-27 15:04:16 -08:00 committed by Willy Tarreau
parent 34d4c3c13f
commit b197d7f433

View File

@ -2492,7 +2492,7 @@ static int stats_dump_info_to_buffer(struct stream_interface *si)
"Hard_maxconn: %d\n"
"CurrConns: %d\n"
"CumConns: %d\n"
"CumReq: %d\n"
"CumReq: %u\n"
#ifdef USE_OPENSSL
"MaxSslConns: %d\n"
"CurrSslConns: %d\n"