gids is not available on Windows

This commit is contained in:
Alessio Sergi 2018-01-27 18:37:03 +01:00
parent c1d5b96faf
commit cab5946959

View File

@ -235,10 +235,13 @@ class GlancesProcesses(object):
'memory_info', 'memory_percent', 'memory_info', 'memory_percent',
'name', 'nice', 'pid', 'name', 'nice', 'pid',
'ppid', 'status', 'username', 'ppid', 'status', 'username',
'status', 'num_threads', 'gids'] 'status', 'num_threads']
# io_counters availability: Linux, BSD, Windows, AIX # io_counters availability: Linux, BSD, Windows, AIX
if LINUX or BSD or WINDOWS: if not MACOS and not SUNOS:
standards_attr += ['io_counters'] standards_attr += ['io_counters']
# gids availability: Unix
if not WINDOWS:
standards_attr += ['gids']
# and build the processes stats list # and build the processes stats list
try: try: