From 4847963277dd80075eb17089ccf7b53e5ecd79d5 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Mon, 18 Jun 2018 18:07:17 +0900 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B2=D0=B8=D0=B4=D0=B0=20=D1=83=D0=B2=D0=B5?= =?UTF-8?q?=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nohang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nohang b/nohang index 9aba64a..bdc1091 100755 --- a/nohang +++ b/nohang @@ -18,7 +18,7 @@ from argparse import ArgumentParser #notify_options = '-t "60000"' #notify_options = '-u "critical"' -notify_options = '' +notify_options = '-i "dialog-warning"' version = 'unknown' @@ -198,7 +198,7 @@ def find_victim_and_send_signal(signal): if desktop_notifications: - info = '"Nohang sent {} to the process \nName: {} \nPid: {} \noom_score: {} \nVmRSS: {} MiB \nVmSwap: {} MiB" &'.format(sig_dict[signal], name, pid, oom_score, vm_rss, vm_swap) + info = '"Nohang sent {} \nto the process \nName: {} \nPid: {} \noom_score: {} \nVmRSS: {} MiB \nVmSwap: {} MiB" &'.format(sig_dict[signal], name, pid, oom_score, vm_rss, vm_swap) if root: # получаем множество залогиненных юзеров из вывода команды