From 67d9c3295e79ba585b2b993b558287246e27dfd8 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Fri, 19 Apr 2019 19:23:34 +0900 Subject: [PATCH] fix output --- nohang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nohang b/nohang index 19e761f..4bc1bb0 100755 --- a/nohang +++ b/nohang @@ -337,7 +337,7 @@ def pid_to_ancestry(pid, max_ancestry_depth=1): if max_ancestry_depth == 1: ppid = pid_to_ppid(pid) pname = pid_to_name(ppid) - return '\n PPID: {} ({})'.format(ppid, pname) + return '\n PPID: {} ({})'.format(ppid, pname) if max_ancestry_depth == 0: return '' anc_list = [] @@ -351,7 +351,7 @@ def pid_to_ancestry(pid, max_ancestry_depth=1): a = '' for i in anc_list: a = a + ' <= PID {} ({})'.format(i[0], i[1]) - return '\n Ancestry: ' + a[4:] + return '\n Ancestry: ' + a[4:] def pid_to_cmdline(pid):