parent
063a9dd911
commit
e50de2c35f
1 changed files with 2 additions and 0 deletions
|
@ -322,6 +322,8 @@ class LinuxTCPConnectionInfo(TCPConnectionInfo):
|
||||||
def get_active_connections_count(self):
|
def get_active_connections_count(self):
|
||||||
active_connections = 0
|
active_connections = 0
|
||||||
for family in self.source_file.keys():
|
for family in self.source_file.keys():
|
||||||
|
if not os.path.isfile(self.source_file[family]):
|
||||||
|
continue
|
||||||
f = open(self.source_file[family])
|
f = open(self.source_file[family])
|
||||||
for tcp_connection in f.readlines():
|
for tcp_connection in f.readlines():
|
||||||
tcp_connection = tcp_connection.strip().split()
|
tcp_connection = tcp_connection.strip().split()
|
||||||
|
|
Loading…
Reference in a new issue