diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-10 02:38:38 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-10 02:38:38 +0200 |
commit | 092f71b09e4664e7d631bd8ee3a644e0128f5833 (patch) | |
tree | aea418339633a061faca96ab0ed270e35a5ed527 /scripts/procinfo.py | |
parent | 6f021c72bd41f81962e0de0b426578bca916de7b (diff) | |
download | psutil-092f71b09e4664e7d631bd8ee3a644e0128f5833.tar.gz |
add screenshots to README
Diffstat (limited to 'scripts/procinfo.py')
-rwxr-xr-x | scripts/procinfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/procinfo.py b/scripts/procinfo.py index c5238b37..b9db6701 100755 --- a/scripts/procinfo.py +++ b/scripts/procinfo.py @@ -260,7 +260,7 @@ def run(pid, verbose=False): print_('connections', '') if pinfo['threads'] and len(pinfo['threads']) > 1: - template = "%-5s %15s %15s" + template = "%-5s %12s %12s" print_('threads', template % ("TID", "USER", "SYSTEM")) for i, thread in enumerate(pinfo['threads']): if not verbose and i >= NON_VERBOSE_ITERATIONS: @@ -282,14 +282,14 @@ def run(pid, verbose=False): else: resources.append((res_name, soft, hard)) if resources: - print_("res-limits", - "RLIMIT SOFT HARD") + template = "%-12s %15s %15s" + print_("res-limits", template % ("RLIMIT", "SOFT", "HARD")) for res_name, soft, hard in resources: if soft == psutil.RLIM_INFINITY: soft = "infinity" if hard == psutil.RLIM_INFINITY: hard = "infinity" - print_('', "%-20s %10s %10s" % ( + print_('', template % ( RLIMITS_MAP.get(res_name, res_name), soft, hard)) if hasattr(proc, "environ") and pinfo['environ']: |