r4078 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu May 14 13:38:17 CEST 2009


Author: phk
Date: 2009-05-14 13:38:17 +0200 (Thu, 14 May 2009)
New Revision: 4078

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_cli.c
Log:
Don't show stats with zero value in cli.



Modified: trunk/varnish-cache/bin/varnishd/mgt_cli.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_cli.c	2009-05-13 21:44:51 UTC (rev 4077)
+++ trunk/varnish-cache/bin/varnishd/mgt_cli.c	2009-05-14 11:38:17 UTC (rev 4078)
@@ -104,7 +104,8 @@
 
 	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
 }



More information about the varnish-commit mailing list