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

end_time of a job is calculated as start_time + run_time

parent 3e1d857a
......@@ -15,7 +15,7 @@ def fetch_all(job_id, type):
if type == "pdf":
t_start = data["job"]["start_time"]
t_end = data["job"]["end_time"]
t_end = t_start + data["job"]["run_time"]
data["seq"], data["seq_delta"] = get_seq_data(job_id, t_start, t_end)
return data
......@@ -33,7 +33,7 @@ def get_aggregator(job_id, type="ascii"):
aggr.job.used_queue = jd["used_queue"]
aggr.job.submit_time = jd["submit_time"]
aggr.job.start_time = jd["start_time"]
aggr.job.end_time = jd["end_time"]
aggr.job.end_time = jd["start_time"] + jd["run_time"]
aggr.job.run_time = jd["run_time"]
aggr.job.requested_time = jd["requested_time"]
aggr.job.requested_cu = jd["requested_cu"]
......
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