From: Jo-Philipp Wich Date: Sun, 13 Mar 2011 17:52:03 +0000 (+0000) Subject: modules/admin-full: don't count TIME_WAIT connections in luci-bwc X-Git-Tag: 0.11.0~2206 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0d763785e66cc251ae39189b230ae62a08f070e;p=oweals%2Fluci.git modules/admin-full: don't count TIME_WAIT connections in luci-bwc --- 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"))