This commit is contained in:
Alexey Avramov 2019-03-16 01:41:03 +09:00
parent a0bc1dad49
commit 707ce79fc7

5
nohang
View File

@ -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):