mirror of https://github.com/nicolargo/glances.git
ERROR -- Can not grab extended stats (invalid attr name 'num_fds') #1351
This commit is contained in:
parent
e1e5af5c1c
commit
dda9dd3b8f
1
NEWS
1
NEWS
|
|
@ -17,6 +17,7 @@ Bugs corrected:
|
|||
* Crash after running fine for several hours #1335
|
||||
* Timezone listed doesn’t match system timezone, outputs wrong time #1337
|
||||
* Compare issue with Process.cpu_times() #1339
|
||||
* ERROR -- Can not grab extended stats (invalid attr name 'num_fds') #1351
|
||||
|
||||
Others:
|
||||
|
||||
|
|
|
|||
|
|
@ -279,7 +279,10 @@ class GlancesProcesses(object):
|
|||
try:
|
||||
top_process = psutil.Process(proc['pid'])
|
||||
extended_stats = ['cpu_affinity', 'ionice',
|
||||
'num_ctx_switches', 'num_fds']
|
||||
'num_ctx_switches']
|
||||
if LINUX:
|
||||
# num_fds only avalable on Unix system (see issue #1351)
|
||||
extended_stats += ['num_fds']
|
||||
if WINDOWS:
|
||||
extended_stats += ['num_handles']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue