From c8cd66d35492d794fee2d4d3730efedfcccb95ba Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Thu, 18 Jul 2019 23:11:40 +0900 Subject: [PATCH] fix alerts --- nohang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nohang b/nohang index 23ab5bc..5161e10 100755 --- a/nohang +++ b/nohang @@ -1947,7 +1947,7 @@ def implement_corrective_action( '\n Send {} to the victim; {}'.format( sig_dict[threshold], send_result) - success = True + # success = True if threshold is SIGKILL: vwd = True @@ -1955,14 +1955,14 @@ def implement_corrective_action( except FileNotFoundError: vwd = True # success = False - response_time = time() - time0 + # response_time = time() - time0 # send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000)) key = 'The victim died in the search process: ' \ 'FileNotFoundError' except ProcessLookupError: vwd = True # success = False - response_time = time() - time0 + # response_time = time() - time0 # send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000)) key = 'The victim died in the search process: ' \ 'ProcessLookupError'