Commit dffd38af authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Lasse Karstensen

Reserve space for the "cooling" state in vcl.list

A VCL may show up as auto/cooling in the CLI, breaking the columns align
in the output.

Also for 4.1
parent 5e21eb3b
......@@ -554,7 +554,7 @@ ccf_config_list(struct cli *cli, const char * const *av, void *priv)
flg = "discarded";
} else
flg = "available";
VCLI_Out(cli, "%-10s %4s/%s %6u %s\n",
VCLI_Out(cli, "%-10s %4s/%-8s %6u %s\n",
flg, vcl->state, vcl->temp, vcl->busy, vcl->loaded_name);
}
}
......
......@@ -414,7 +414,7 @@ mcf_vcl_list(struct cli *cli, const char * const *av, void *priv)
free(p);
} else {
VTAILQ_FOREACH(vp, &vclhead, list) {
VCLI_Out(cli, "%-10s %4s/%s %6s %s\n",
VCLI_Out(cli, "%-10s %4s/%-8s %6s %s\n",
vp == active_vcl ? "active" : "available",
vp->state,
vp->warm ? "warm" : "cold", "", 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