From 59373b07935fbd3f1e2961f1c10fa8d5cf26422e Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 5 Mar 2012 19:52:37 +0100 Subject: [PATCH] Only show parent id > 1 --- couchpotato/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/environment.py b/couchpotato/environment.py index 7fe691e8..53cb5408 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -80,6 +80,6 @@ class Env(object): parent = os.getppid() except: parent = None - return '%d %s' % (os.getpid(), '(%d)' % parent if parent else '') + return '%d %s' % (os.getpid(), '(%d)' % parent if parent and parent > 1 else '') except: return 0