fix alerts
This commit is contained in:
parent
75f05959fc
commit
c8cd66d354
6
nohang
6
nohang
@ -1947,7 +1947,7 @@ def implement_corrective_action(
|
|||||||
'\n Send {} to the victim; {}'.format(
|
'\n Send {} to the victim; {}'.format(
|
||||||
sig_dict[threshold], send_result)
|
sig_dict[threshold], send_result)
|
||||||
|
|
||||||
success = True
|
# success = True
|
||||||
|
|
||||||
if threshold is SIGKILL:
|
if threshold is SIGKILL:
|
||||||
vwd = True
|
vwd = True
|
||||||
@ -1955,14 +1955,14 @@ def implement_corrective_action(
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
vwd = True
|
vwd = True
|
||||||
# success = False
|
# success = False
|
||||||
response_time = time() - time0
|
# response_time = time() - time0
|
||||||
# send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000))
|
# send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000))
|
||||||
key = 'The victim died in the search process: ' \
|
key = 'The victim died in the search process: ' \
|
||||||
'FileNotFoundError'
|
'FileNotFoundError'
|
||||||
except ProcessLookupError:
|
except ProcessLookupError:
|
||||||
vwd = True
|
vwd = True
|
||||||
# success = False
|
# success = False
|
||||||
response_time = time() - time0
|
# response_time = time() - time0
|
||||||
# send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000))
|
# send_result = 'no such process; response time: {} ms'.format(round(response_time * 1000))
|
||||||
key = 'The victim died in the search process: ' \
|
key = 'The victim died in the search process: ' \
|
||||||
'ProcessLookupError'
|
'ProcessLookupError'
|
||||||
|
Loading…
Reference in New Issue
Block a user