Commit 586719b1 authored by Alexandre Boyer's avatar Alexandre Boyer
Browse files

new attempt to fix monitor

parent d4ac5e1d
......@@ -106,7 +106,7 @@ class Monitor():
# Try to retrieve the main_process
try:
process = psutil.Process(self.main_process_pid)
process = psutil.Process(self.main_process.pid)
# Load the NVIDIA handler
with NvmlHandler() as nvml_h:
......@@ -131,4 +131,4 @@ class Monitor():
except Exception as e:
logger.warning(e)
logger.info('PID {} not available for monitoring'.format(self.main_process_pid))
logger.info('PID {} not available for monitoring'.format(self.main_process.pid))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment