diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-11-28 14:31:45 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-11-28 14:31:45 -0200 |
commit | beb11453cd8d90b62b2b17acacf73a871aad97c5 (patch) | |
tree | a9eec96ade2796aa2ed57ca16221502da342346d | |
parent | 28c093c0bf79a244caee41342640de949039a7bc (diff) | |
download | tuna-beb11453cd8d90b62b2b17acacf73a871aad97c5.tar.gz |
cmdline: align pids to the left
When using --affect_children (-C) the --show_threads (-P) output
was confusing when the parent has, say, 4 digits and some of its
children 5 digits.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-x | tuna-cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tuna-cmd.py b/tuna-cmd.py index 3c74a71..5fc22c0 100755 --- a/tuna-cmd.py +++ b/tuna-cmd.py @@ -122,9 +122,9 @@ def ps_show_thread(pid, affect_children, ps, cpuinfo, irqs, nics, has_ctxt_switc nonvoluntary_ctxt_switches) if affect_children: - print "%6d " % pid, + print " %-5d " % pid, else: - print " %5d" % pid, + print " %-5d" % pid, print "%6s %5d %8s%s %15s %s" % (sched, rtprio, affinity, ctxt_switch_info, cmd, users) if affect_children and ps[pid].has_key("threads"): |