fix
This commit is contained in:
parent
a0bc1dad49
commit
707ce79fc7
5
nohang
5
nohang
@ -153,8 +153,9 @@ def pid_to_starttime(pid):
|
|||||||
|
|
||||||
|
|
||||||
def get_victim_id(pid):
|
def get_victim_id(pid):
|
||||||
return pid + '-' + rline1(
|
"""victim_id is starttime + pid"""
|
||||||
'/proc/' + pid + '/stat').rpartition(')')[2].split(' ')[20]
|
return rline1('/proc/' + pid + '/stat').rpartition(
|
||||||
|
')')[2].split(' ')[20] + pid
|
||||||
|
|
||||||
|
|
||||||
def errprint(*text):
|
def errprint(*text):
|
||||||
|
Loading…
Reference in New Issue
Block a user