From cab5946959b526dcca966ef5f2c8a09a5d37dff7 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 27 Jan 2018 18:37:03 +0100 Subject: [PATCH] gids is not available on Windows --- glances/processes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/glances/processes.py b/glances/processes.py index 629a26ef..3dda17a5 100644 --- a/glances/processes.py +++ b/glances/processes.py @@ -235,10 +235,13 @@ class GlancesProcesses(object): 'memory_info', 'memory_percent', 'name', 'nice', 'pid', 'ppid', 'status', 'username', - 'status', 'num_threads', 'gids'] + 'status', 'num_threads'] # io_counters availability: Linux, BSD, Windows, AIX - if LINUX or BSD or WINDOWS: + if not MACOS and not SUNOS: standards_attr += ['io_counters'] + # gids availability: Unix + if not WINDOWS: + standards_attr += ['gids'] # and build the processes stats list try: