From a0bc1dad491b431401cbd3dad6cf3ba5f77de98c Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sat, 16 Mar 2019 01:32:58 +0900 Subject: [PATCH] fix psi --- nohang | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nohang b/nohang index 18f0eb6..e47b3a1 100755 --- a/nohang +++ b/nohang @@ -42,7 +42,6 @@ wait_time = 10 notify_helper_path = '/usr/sbin/nohang_notify_helper' -psi_support = os.path.exists(psi_path) HR = '' @@ -1723,6 +1722,15 @@ if max_sleep_time < min_sleep_time: ########################################################################## +psi_support = os.path.exists(psi_path) + + + +########################################################################## + + + + # Get KiB levels if it's possible. # получ кб. если не кб - то процент. Если процент - находим кб ниже на