fix output
This commit is contained in:
parent
7bc55b3950
commit
d4821d29a8
@ -42,6 +42,7 @@ The tools listed above may work at the same time on one computer.
|
||||
- names,
|
||||
- cgroups,
|
||||
- realpathes,
|
||||
- environs,
|
||||
- cmdlines and
|
||||
- euids
|
||||
with specified regular expressions
|
||||
|
12
nohang
12
nohang
@ -1034,10 +1034,12 @@ def find_victim(_print_proc_table):
|
||||
else:
|
||||
extra_table_title = ''
|
||||
|
||||
log('====================================================================================================================')
|
||||
log(' PID PPID badness oom_score oom_score_adj eUID S VmSize VmRSS VmSwap Name {}'.format(
|
||||
hr = '#' * 115
|
||||
|
||||
log(hr)
|
||||
log('# PID PPID badness oom_score oom_score_adj eUID S VmSize VmRSS VmSwap Name {}'.format(
|
||||
extra_table_title))
|
||||
log('------- ------- ------- --------- ------------- ---------- - ------ ----- ------ --------------- --------')
|
||||
log('#------- ------- ------- --------- ------------- ---------- - ------ ----- ------ --------------- --------')
|
||||
|
||||
for pid in pid_list:
|
||||
|
||||
@ -1084,7 +1086,7 @@ def find_victim(_print_proc_table):
|
||||
else:
|
||||
extra_table_line = ''
|
||||
|
||||
log('{} {} {} {} {} {} {} {} {} {} {} {}'.format(
|
||||
log('#{} {} {} {} {} {} {} {} {} {} {} {}'.format(
|
||||
pid.rjust(7),
|
||||
ppid.rjust(7),
|
||||
str(badness).rjust(7),
|
||||
@ -1117,7 +1119,7 @@ def find_victim(_print_proc_table):
|
||||
victim_name = pid_to_name(pid)
|
||||
|
||||
if _print_proc_table:
|
||||
log('====================================================================================================================')
|
||||
log(hr)
|
||||
|
||||
log(
|
||||
'Process with highest badness (found in {} ms):\n PID: {}, Na'
|
||||
|
@ -362,7 +362,7 @@ print_proc_table = True
|
||||
realpath
|
||||
All
|
||||
|
||||
extra_table_info = None
|
||||
extra_table_info = cgroup
|
||||
|
||||
print_victim_info = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user