Browse Source

Don't search IPv6 lines

Hamilton Turner 10 years ago
parent
commit
df4527a2b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      toolset/benchmark/benchmarker.py

+ 1 - 1
toolset/benchmark/benchmarker.py

@@ -690,7 +690,7 @@ class Benchmarker:
     p = subprocess.Popen(['sudo', 'netstat', '-lnp'], stdout=subprocess.PIPE)
     (ns_out, ns_err) = p.communicate()
     for line in ns_out.splitlines():
-      if 'tcp' in line:
+      if 'tcp' in line and not 'tcp6' in line:
         splitline = line.split()
         port = splitline[3].split(':')
         port = int(port[len(port) - 1].strip())