mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #108 from bjackman/fix-ps-android
AndroidTarget: Fix `ps` when NAME column contains spaces
This commit is contained in:
commit
b112ed424c
@ -929,7 +929,7 @@ class AndroidTarget(Target):
|
|||||||
lines.next() # header
|
lines.next() # header
|
||||||
result = []
|
result = []
|
||||||
for line in lines:
|
for line in lines:
|
||||||
parts = line.split()
|
parts = line.split(None, 8)
|
||||||
if parts:
|
if parts:
|
||||||
result.append(PsEntry(*(parts[0:1] + map(int, parts[1:5]) + parts[5:])))
|
result.append(PsEntry(*(parts[0:1] + map(int, parts[1:5]) + parts[5:])))
|
||||||
if not kwargs:
|
if not kwargs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user