diff options
| author | wiggin15 <arnony@infinidat.com> | 2019-05-08 11:20:49 +0300 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-08 16:20:49 +0800 |
| commit | 43a22b81832f7ba546636c26006190bc2bb8dfc2 (patch) | |
| tree | 2bd8f5e4725be70b515bfc86b10f5aa2d79b9326 /scripts | |
| parent | 904f5ec2b416620302df78de1ef8d73c00401a32 (diff) | |
| download | psutil-43a22b81832f7ba546636c26006190bc2bb8dfc2.tar.gz | |
Fix some tests on AIX (#1507)
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/ps.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ps.py b/scripts/ps.py index 40dcce20..8467cca6 100755 --- a/scripts/ps.py +++ b/scripts/ps.py @@ -70,6 +70,8 @@ def main(): pass if user and psutil.WINDOWS and '\\' in user: user = user.split('\\')[1] + if not user: + user = '' user = user[:9] vms = bytes2human(p.info['memory_info'].vms) if \ p.info['memory_info'] is not None else '' @@ -85,7 +87,7 @@ def main(): status = p.info['status'][:5] if p.info['status'] else '' line = templ % ( - user[:10], + user, p.info['pid'], memp, vms, |
