Removing io_counters from the ProcStatatistics

`io_counters` is not always available (e.g. under Ubunutu 20 run in WSL), resulting in an exception being throw.

See #1373 for a complete explanation of the issue.
This commit is contained in:
Francesco Zoffoli 2021-04-10 22:39:55 +01:00 committed by GitHub
parent 43b3b5af98
commit ec7c0f73e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,7 @@ class ProcStatistics:
# 'memory_maps',
'status',
# 'num_fds', # The number of file descriptors currently opened by this process (non cumulative) - N/A on Windows
'io_counters',
# 'io_counters', # The number and bytes read/write by the process - N/A on some platforms
'num_ctx_switches',
]