From 707ce79fc74e2901da79d67a33b10e953d65a794 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sat, 16 Mar 2019 01:41:03 +0900 Subject: [PATCH] fix --- nohang | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nohang b/nohang index e47b3a1..3cdc0b6 100755 --- a/nohang +++ b/nohang @@ -153,8 +153,9 @@ def pid_to_starttime(pid): def get_victim_id(pid): - return pid + '-' + rline1( - '/proc/' + pid + '/stat').rpartition(')')[2].split(' ')[20] + """victim_id is starttime + pid""" + return rline1('/proc/' + pid + '/stat').rpartition( + ')')[2].split(' ')[20] + pid def errprint(*text):