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,
|
- names,
|
||||||
- cgroups,
|
- cgroups,
|
||||||
- realpathes,
|
- realpathes,
|
||||||
|
- environs,
|
||||||
- cmdlines and
|
- cmdlines and
|
||||||
- euids
|
- euids
|
||||||
with specified regular expressions
|
with specified regular expressions
|
||||||
|
12
nohang
12
nohang
@ -1034,10 +1034,12 @@ def find_victim(_print_proc_table):
|
|||||||
else:
|
else:
|
||||||
extra_table_title = ''
|
extra_table_title = ''
|
||||||
|
|
||||||
log('====================================================================================================================')
|
hr = '#' * 115
|
||||||
log(' PID PPID badness oom_score oom_score_adj eUID S VmSize VmRSS VmSwap Name {}'.format(
|
|
||||||
|
log(hr)
|
||||||
|
log('# PID PPID badness oom_score oom_score_adj eUID S VmSize VmRSS VmSwap Name {}'.format(
|
||||||
extra_table_title))
|
extra_table_title))
|
||||||
log('------- ------- ------- --------- ------------- ---------- - ------ ----- ------ --------------- --------')
|
log('#------- ------- ------- --------- ------------- ---------- - ------ ----- ------ --------------- --------')
|
||||||
|
|
||||||
for pid in pid_list:
|
for pid in pid_list:
|
||||||
|
|
||||||
@ -1084,7 +1086,7 @@ def find_victim(_print_proc_table):
|
|||||||
else:
|
else:
|
||||||
extra_table_line = ''
|
extra_table_line = ''
|
||||||
|
|
||||||
log('{} {} {} {} {} {} {} {} {} {} {} {}'.format(
|
log('#{} {} {} {} {} {} {} {} {} {} {} {}'.format(
|
||||||
pid.rjust(7),
|
pid.rjust(7),
|
||||||
ppid.rjust(7),
|
ppid.rjust(7),
|
||||||
str(badness).rjust(7),
|
str(badness).rjust(7),
|
||||||
@ -1117,7 +1119,7 @@ def find_victim(_print_proc_table):
|
|||||||
victim_name = pid_to_name(pid)
|
victim_name = pid_to_name(pid)
|
||||||
|
|
||||||
if _print_proc_table:
|
if _print_proc_table:
|
||||||
log('====================================================================================================================')
|
log(hr)
|
||||||
|
|
||||||
log(
|
log(
|
||||||
'Process with highest badness (found in {} ms):\n PID: {}, Na'
|
'Process with highest badness (found in {} ms):\n PID: {}, Na'
|
||||||
|
@ -362,7 +362,7 @@ print_proc_table = True
|
|||||||
realpath
|
realpath
|
||||||
All
|
All
|
||||||
|
|
||||||
extra_table_info = None
|
extra_table_info = cgroup
|
||||||
|
|
||||||
print_victim_info = True
|
print_victim_info = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user