From e522d0174a33dbac2f7a9a52e7006ee864f5067e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 05:33:56 +0200 Subject: m fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/argparser.py') diff --git a/src/argparser.py b/src/argparser.py index c5f2db6..7a2cafd 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -80,7 +80,7 @@ class ArgParser(): pid = os.readlink('/proc/self') lvl = levels while lvl > 0: - with open('/proc/%d/status' % pid, 'r') as file: + with open('/proc/%s/status' % pid, 'r') as file: lines = file.readlines() found = False for line in lines: -- cgit v1.2.3-70-g09d2