Commit aad5db9a authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

added a check for JOBID in nvidia plugin

parent ca6453e4
......@@ -78,6 +78,8 @@ while read -r line; do
JOBID=`strings /proc/${proc_vals[pid]}/environ | grep -E "(SLURM|LSF)_JOBID=" | cut -d= -f2`
if [ "$JOBID" == ""]; then JOBID=-1; fi;
cpu_stats=`ps --no-headers -o $cpu_params -p ${proc_vals[pid]}`
cnt=0
......
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