From: Marek Becka Date: Fri, 22 Nov 2013 15:36:46 +0000 (+0100) Subject: turn off automatic local port enabling if all ports summary is set X-Git-Tag: collectd-5.5.0~169^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5423582bef3ee38951ace858ff3d5f03deb47241;p=collectd.git turn off automatic local port enabling if all ports summary is set --- diff --git a/src/tcpconns.c b/src/tcpconns.c index 8fbc1a48..7c427e5f 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -744,7 +744,7 @@ static int conn_config (const char *key, const char *value) #if KERNEL_LINUX static int conn_init (void) { - if (port_list_head == NULL) + if (port_collect_total == 0 && port_list_head == NULL) port_collect_listening = 1; return (0);