modules/admin-full: don't count TIME_WAIT connections in luci-bwc
This commit is contained in:
parent
026945ae09
commit
e0d763785e
1 changed files with 3 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue