The definition of the global.req_count at include/types/global.h line 109
is an unsigned int. The print code it treating it as a signed int. The
attached commit fixes that.

Also, is there an SSL protected location for fetching the haproxy git repo
whose cert is signed by a widespread CA? The haproxy.org site also seems to
be pretty slow for git cloning.

wt
-- 
Warren Turkal
commit 2f4e2480139fdd976d9e9edef3fd582d50f21027
Author: Warren Turkal <w...@signalfuse.com>
Date:   Tue Jan 27 15:02:00 2015 -0800

    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.

diff --git a/src/dumpstats.c b/src/dumpstats.c
index 1070ff4..b616478 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -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"

Reply via email to