summaryrefslogtreecommitdiffstats
path: root/src/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor.c')
-rw-r--r--src/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.c b/src/monitor.c
index 3872ebcf..9e508f8f 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -849,7 +849,7 @@ static int netlink_events_newgen_cb(const struct nlmsghdr *nlh, int type,
break;
}
}
- if (genid >= 0) {
+ if (!nft_output_echo(&monh->ctx->nft->output) && genid >= 0) {
nft_mon_print(monh, "# new generation %d", genid);
if (pid >= 0)
nft_mon_print(monh, " by process %d (%s)", pid, name);