Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
Signed-off-by: Giampaolo Rodola <[email protected]>
  • Loading branch information
giampaolo committed Apr 18, 2024
2 parents b676da9 + 8bfecf0 commit d831d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/procinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ def run(pid, verbose=False):
else:
print_('open-files', '')

if pinfo['connections']:
if pinfo['net_connections']:
template = '%-5s %-25s %-25s %s'
print_(
'connections',
template % ('PROTO', 'LOCAL ADDR', 'REMOTE ADDR', 'STATUS'),
)
for conn in pinfo['connections']:
for conn in pinfo['net_connections']:
if conn.type == socket.SOCK_STREAM:
type = 'TCP'
elif conn.type == socket.SOCK_DGRAM:
Expand Down

0 comments on commit d831d89

Please sign in to comment.