From fbb6464217c83917069870bac05eda20903c37fa Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Mon, 9 Dec 2019 02:06:12 +0900 Subject: [PATCH] quick-fix issue#68 --- nohang/nohang | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nohang/nohang b/nohang/nohang index ee49b10..5aa3b1b 100755 --- a/nohang/nohang +++ b/nohang/nohang @@ -2368,7 +2368,7 @@ def implement_corrective_action( # После этого все должно быть супер охуенно. while True: - sleep(0.005) + sleep(0.01) d = monotonic() - kill_timestamp #print('Прошло времени:', d) iva = is_victim_alive(victim_id) @@ -2383,11 +2383,13 @@ def implement_corrective_action( elif iva == 1: #print('Жива и занимает память') + + if vwd and d > sensitivity_test_time + 10: + log("The victim doesn't respond on corrective action in {} sec".format(round(d, 3))) + break + if not vwd and d > sensitivity_test_time: - - log("The victim doesn't respond on corrective action in {} sec".format( - round(d, 3))) - + log("The victim doesn't respond on corrective action in {} sec".format(round(d, 3))) break elif iva == 2: