Merge branch 'standalone_develop' into pm_project_develop

This commit is contained in:
2024-03-11 09:23:22 +08:00
3 changed files with 15 additions and 11 deletions

View File

@@ -15,8 +15,8 @@ if @result_object[:data]["Runs"].present?
end
json.status run["Status"]
json.time_ago time_from_now(run["Stopped"])
json.holding_time run["Stopped"]-run["Started"]
json.time_ago time_from_now(run["Created"])
json.holding_time run["Status"] == 6 ? Time.now.to_i - run["Created"] : run["Stopped"] - run["Created"]
end
else
json.runs []