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

Make the vcl.list use the same layout in stopped mode as in started mode.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2933 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4c439168
......@@ -674,6 +674,7 @@ mcf_config_list(struct cli *cli, const char * const *av, void *priv)
{
unsigned status;
char *p;
const char *flg;
struct vclprog *vp;
(void)av;
......@@ -686,9 +687,12 @@ mcf_config_list(struct cli *cli, const char * const *av, void *priv)
free(p);
} else {
VTAILQ_FOREACH(vp, &vclhead, list) {
cli_out(cli, "%s %6s %s\n",
vp->active ? "*" : " ",
"N/A", vp->name);
if (vp->active) {
flg = "active";
} else
flg = "available";
cli_out(cli, "%-10s %6s %s\n",
flg, "N/A", vp->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