From 5f211d765b2b736f7f7d80521e65537f7f7f12ea Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Tue, 12 Feb 2019 02:48:08 +0900 Subject: [PATCH] fix GUI notifications --- nohang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nohang b/nohang index 7a6288c..3e42090 100755 --- a/nohang +++ b/nohang @@ -377,7 +377,7 @@ def send_notify_warn(): # title = 'Low memory: {}'.format(low_mem_percent) title = 'Low memory' - body = 'Hog: {}, PID: {}'.format( + body = 'Next victim: {}[{}]'.format( name.replace( # symbol '&' can break notifications in some themes, # therefore it is replaced by '*' @@ -401,8 +401,8 @@ def send_notify(signal, name, pid): name: str process name pid: str process pid """ - title = 'Hang prevention' - body = '{} {}, PID: {}'.format( + title = 'Freeze prevention' + body = '{} {}[{}]'.format( notify_sig_dict[signal], name.replace( # symbol '&' can break notifications in some themes, @@ -426,8 +426,8 @@ def send_notify_etc(pid, name, command): name: str process name pid: str process pid """ - title = 'Hang prevention' - body = 'Victim is process {}, {}\nExecute the command:\n{}'.format( + title = 'Freeze prevention' + body = 'Victim is {}[{}]\nExecute the command:\n{}'.format( name.replace('&', '*'), pid, command.replace('&', '*')