Commit 18ded813 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't show stats with zero value in cli.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4078 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent afbaea43
......@@ -104,7 +104,8 @@ mcf_stats(struct cli *cli, const char * const *av, void *priv)
AN(VSL_stats);
#define MAC_STAT(n, t, l, f, d) \
cli_out(cli, "%12ju %s\n", (VSL_stats->n), d);
if (VSL_stats->n != 0) \
cli_out(cli, "%12ju %s\n", (VSL_stats->n), d);
#include "stat_field.h"
#undef MAC_STAT
}
......
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