modules/admin-full: don't count TIME_WAIT connections in luci-bwc

This commit is contained in:
Jo-Philipp Wich 2011-03-13 17:52:03 +00:00
parent 026945ae09
commit e0d763785e

View file

@ -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"))