Commit d4980319 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Change the layout of the "vcl.list" to explicitly say "active",

"available" or "discarded".



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2909 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent da8aeae2
......@@ -214,13 +214,20 @@ static void
ccf_config_list(struct cli *cli, const char * const *av, void *priv)
{
struct vcls *vcl;
const char *flg;
(void)av;
(void)priv;
ASSERT_CLI();
VTAILQ_FOREACH(vcl, &vcl_head, list) {
cli_out(cli, "%s %6u %s\n",
vcl == vcl_active ? "* " : " ",
if (vcl == vcl_active) {
flg = "active";
} else if (vcl->conf->discard) {
flg = "discarded";
} else
flg = "available";
cli_out(cli, "%-10s %6u %s\n",
flg,
vcl->conf->busy,
vcl->name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment