r2933 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 10 23:55:48 CEST 2008
Author: phk
Date: 2008-07-10 23:55:48 +0200 (Thu, 10 Jul 2008)
New Revision: 2933
Modified:
trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Make the vcl.list use the same layout in stopped mode as in started mode.
Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2008-07-10 21:51:19 UTC (rev 2932)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2008-07-10 21:55:48 UTC (rev 2933)
@@ -674,6 +674,7 @@
{
unsigned status;
char *p;
+ const char *flg;
struct vclprog *vp;
(void)av;
@@ -686,9 +687,12 @@
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);
}
}
}
More information about the varnish-commit
mailing list