]> err.no Git - varnish/commitdiff
Make the vcl.list use the same layout in stopped mode as in started mode.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 21:55:48 +0000 (21:55 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 21:55:48 +0000 (21:55 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2933 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_vcc.c

index ba7dd1546b497eae08fdeacff87071a8bed4ca67..d9c9fcd458c9e36923127fb3aa7ddba4922d0c19 100644 (file)
@@ -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);
                }
        }
 }