You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same as we to for IOPRIO_* and STATUS_* constants:
https://code.google.com/p/psutil/wiki/Documentation#Constants As of now we have:
>>> p.get_connections()
[connection(fd=115, family=2, type=1, local_address=('10.0.0.1', 48776),
remote_address=('93.186.135.91', 80), status='ESTABLISHED'),
'status' field should return a constant object [1] which defaults to int but
can be nicely represented via str as in:
>>> p.get_connections()[0].status
0
>>> str(p.get_connections()[0].status)
'ESTABLISHED'
>>>
[1]
https://code.google.com/p/psutil/source/browse/psutil/_common.py?spec=svnc6127ffef817129b411f84249b7496e803887dad&r=563562aba003010d4a6612a101f0855d75d80cf9#33
From g.rodola on April 12, 2013 20:25:47
Original issue: http://code.google.com/p/psutil/issues/detail?id=367
The text was updated successfully, but these errors were encountered: