aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/argparser.py2
1 files changed, 1 insertions, 1 deletions
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: