Commit 128288a0 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix in using ps command of get_processes_info

parent 6e58f369
......@@ -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:]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment