Skip to content
Snippets Groups Projects
Commit 128288a0 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix in using ps command of get_processes_info

parent 6e58f369
No related branches found
No related tags found
No related merge requests found
......@@ -444,7 +444,7 @@ class PlatformPosix(Platform):
'''
# Get all the active processes using the Unix ps command
procs = subprocess.Popen(['ps', '-o', 'pid,etime'], stdout=subprocess.PIPE)
procs = subprocess.Popen(['ps', '-eo', 'pid,etime'], stdout=subprocess.PIPE)
# The output of the ps command is splitted according to line feeds.
procs = procs.communicate()[0].split('\n')[1:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment