router_printconfig: suppress statistics bit on fake recursions
Groups are printed by creating a fake router, make sure we pick up that
hint to avoid printing the statistics thing multiple times.
@@ -1626,6 +1626,7 @@ router_printconfig(router *rtr, FILE *f, char pmode)
servers *s;
/* start with configuration wise standard components */
+ if (rtr->collector.interval > 0) {
fprintf(f, "statistics\n submit every %d seconds\n",
rtr->collector.interval);
if (rtr->collector.mode == SUB)
@@ -1650,6 +1651,7 @@ router_printconfig(router *rtr, FILE *f, char pmode)
fprintf(f, " ;\n");
fprintf(f, "\n");
+ }
#define PPROTO \
server_ctype(s->server) == CON_UDP ? " proto udp" : ""
