From e0d763785e66cc251ae39189b230ae62a08f070e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 13 Mar 2011 17:52:03 +0000 Subject: modules/admin-full: don't count TIME_WAIT connections in luci-bwc --- modules/admin-full/src/luci-bwc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/admin-full/src/luci-bwc.c b/modules/admin-full/src/luci-bwc.c index 9f1b420ad..4067c577a 100644 --- a/modules/admin-full/src/luci-bwc.c +++ b/modules/admin-full/src/luci-bwc.c @@ -344,6 +344,9 @@ static int run_daemon(int nofork) while (fgets(line, sizeof(line), info)) { + if (strstr(line, "TIME_WAIT")) + continue; + if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname)) { if (!strcmp(ifname, "tcp")) -- cgit v1.2.3