From 096f554ee117645acebaabe4771ba8661547481b Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 19 Nov 2012 17:26:05 +0100 Subject: [PATCH] MINOR: compression: rate limit in 'show info' Show the compression rate limit 'CompressRateLim' in bytes per second on the UNIX socket. --- doc/configuration.txt | 3 ++- src/dumpstats.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 6b4b74d52..94a1f2240 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11175,7 +11175,8 @@ set rate-limit connections global set rate-limit http-compression global Change the maximum input compression rate, which is set by the global 'maxcomprate' setting. A value of zero disables the limitation. The value is - passed in number of kilobytes per second. + passed in number of kilobytes per second. The value is available in the "show + info" on the line "CompressBpsRateLim" in bytes. set table key data. Create or update a stick-table entry in the table. If the key is not present, diff --git a/src/dumpstats.c b/src/dumpstats.c index 268bec69b..32825b077 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -1746,6 +1746,7 @@ static int stats_dump_raw_to_buffer(struct stream_interface *si) "MaxConnRate: %d\n" "CompressBpsIn: %u\n" "CompressBpsOut: %u\n" + "CompressBpsRateLim: %u\n" "Tasks: %d\n" "Run_queue: %d\n" "Idle_pct: %d\n" @@ -1763,6 +1764,7 @@ static int stats_dump_raw_to_buffer(struct stream_interface *si) actconn, pipes_used, pipes_free, read_freq_ctr(&global.conn_per_sec), global.cps_lim, global.cps_max, read_freq_ctr(&global.comp_bps_in), read_freq_ctr(&global.comp_bps_out), + global.comp_rate_lim, nb_tasks_cur, run_queue_cur, idle_pct, global.node, global.desc?global.desc:"" );