From afec6aff61018799f40ceaf230aac73c320ea716 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Tue, 26 Nov 2019 22:14:43 +0900 Subject: [PATCH] fix GUI notifications --- nohang/nohang | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nohang/nohang b/nohang/nohang index 892363a..fbc86ab 100755 --- a/nohang/nohang +++ b/nohang/nohang @@ -271,11 +271,14 @@ def send_notify_warn(): else: title = 'Low memory' + body = 'Save your unsaved data!' + """" body = 'MemAvail: {}%\nSwapFree: {}%'.format( round(mem_available / mem_total * 100), round(swap_free / (swap_total + 0.1) * 100) ) + """ start_thread(send_notification, title, body) @@ -289,7 +292,7 @@ def send_notify(threshold, name, pid): pid: str process pid """ - title = 'Freeze prevention' + title = 'System hang prevention' if hide_corrective_action_type: body = 'Corrective action applied' @@ -314,7 +317,7 @@ def send_notify_etc(pid, name, command): name: str process name pid: str process pid """ - title = 'Freeze prevention' + title = 'System hang prevention' if hide_corrective_action_type: body = 'Corrective action applied' else: