Commit 7a039b79 authored by Lukas Weber's avatar Lukas Weber

actually fix jobstatus

parent 1702f55b
......@@ -38,7 +38,7 @@ class JobProgress:
sweeps = f['/sweeps'][0]//jobfile.tasks[task].get('pt_sweeps_per_global_update',1)
tp.therm_sweeps += min(sweeps,tp.target_therm)
tp.sweeps += sweeps - tp.therm_sweeps
tp.sweeps += max(0,sweeps - tp.target_therm)
if tp.sweeps < tp.target_sweeps:
......
Markdown is supported
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