Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Apr 9, 2024
1 parent 4f25333 commit dc181bc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sos/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,10 @@ def summarizeExecution(task_id, pulses, status="Unknown"):
accu_cpu += float(c) + float(cc)
accu_mem += float(m) + float(cm)
count += 1
if float(c) + float(cc) > peak_cpu:
peak_cpu = float(c) + float(cc)
if float(m) + float(cm) > peak_mem:
peak_mem = float(m) + float(cm)
if int(nch) > peak_nch:
peak_nch = int(nch)

peak_cpu = max(peak_cpu, float(c) + float(cc))
peak_mem = max(float(m) + float(cm), peak_mem)
peak_nch = max(int(nch), peak_nch)
try:
second_elapsed = end_time - start_time
except Exception:
Expand Down

0 comments on commit dc181bc

Please sign in to comment.