Skip to content

Commit

Permalink
forgot one time parsing fix in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgranger committed Feb 9, 2024
1 parent 0ec9196 commit acb10f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sprofile/sprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def stop(db):
run_time = re.search(
r".*RunTime=(([0-9]+)-)?([0-9]+):([0-9]+):([0-9]+).*", job_info
)
_, days, hours, minutes, seconds = map(int, run_time.groups(default="0"))
days, hours, minutes, seconds = map(int, run_time.groups(default="0")[1:])
run_time = days * 86400 + hours * 3600 + minutes * 60 + seconds

cpu_load = [t / (run_time * 1e9) for t in cpu_times]
Expand Down

0 comments on commit acb10f8

Please sign in to comment.