From: Simon Horman Date: Fri, 12 Aug 2011 23:03:50 +0000 (+0900) Subject: [MINOR] Correct type in table dump examples X-Git-Tag: v1.5-dev8~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64b28d0727e50ec2158f8d3b7a6b1284c5c50f80;p=thirdparty%2Fhaproxy.git [MINOR] Correct type in table dump examples When dumping tables the table type is displayed as a type name not an integer. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 41e8671c7b..afffc63ebe 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -9682,8 +9682,8 @@ show table Example : $ echo "show table" | socat stdio /tmp/sock1 - >>> # table: front_pub, type: 0, size:204800, used:171454 - >>> # table: back_rdp, type: 0, size:204800, used:0 + >>> # table: front_pub, type: ip, size:204800, used:171454 + >>> # table: back_rdp, type: ip, size:204800, used:0 show table [ data. ] | [ key ] Dump contents of stick-table . In this mode, a first line of generic @@ -9711,26 +9711,26 @@ show table [ data. ] | [ key ] Example : $ echo "show table http_proxy" | socat stdio /tmp/sock1 - >>> # table: http_proxy, type: 0, size:204800, used:2 + >>> # table: http_proxy, type: ip, size:204800, used:2 >>> 0x80e6a4c: key=127.0.0.1 use=0 exp=3594729 gpc0=0 conn_rate(30000)=1 \ bytes_out_rate(60000)=187 >>> 0x80e6a80: key=127.0.0.2 use=0 exp=3594740 gpc0=1 conn_rate(30000)=10 \ bytes_out_rate(60000)=191 $ echo "show table http_proxy data.gpc0 gt 0" | socat stdio /tmp/sock1 - >>> # table: http_proxy, type: 0, size:204800, used:2 + >>> # table: http_proxy, type: ip, size:204800, used:2 >>> 0x80e6a80: key=127.0.0.2 use=0 exp=3594740 gpc0=1 conn_rate(30000)=10 \ bytes_out_rate(60000)=191 $ echo "show table http_proxy data.conn_rate gt 5" | \ socat stdio /tmp/sock1 - >>> # table: http_proxy, type: 0, size:204800, used:2 + >>> # table: http_proxy, type: ip, size:204800, used:2 >>> 0x80e6a80: key=127.0.0.2 use=0 exp=3594740 gpc0=1 conn_rate(30000)=10 \ bytes_out_rate(60000)=191 $ echo "show table http_proxy key 127.0.0.2" | \ socat stdio /tmp/sock1 - >>> # table: http_proxy, type: 0, size:204800, used:2 + >>> # table: http_proxy, type: ip, size:204800, used:2 >>> 0x80e6a80: key=127.0.0.2 use=0 exp=3594740 gpc0=1 conn_rate(30000)=10 \ bytes_out_rate(60000)=191