Skip to content

Commit f04446c

Browse files
committed
fixed pid map
1 parent 4df1320 commit f04446c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sams/sampler/Software.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self,
7878
self.updated = None
7979

8080
try:
81-
self.exe = os.readlink('/proc/{self.pid}/exe')
81+
self.exe = os.readlink(f'/proc/{self.pid:d}/exe')
8282
logger.debug(f'Pid: {pid} (JobId: {jobid}) has exe: {self.exe}')
8383
except Exception:
8484
logger.debug(f'Pid: {pid} (JobId: {jobid}) has no exe or pid has disapeard')

0 commit comments

Comments
 (0)