1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

Merge pull request #108 from bjackman/fix-ps-android

AndroidTarget: Fix `ps` when NAME column contains spaces
This commit is contained in:
setrofim 2017-04-12 16:51:33 +01:00 committed by GitHub
commit b112ed424c

View File

@ -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: