mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
更改:时间取值
This commit is contained in:
@@ -15,8 +15,8 @@ if @result_object[:data]["Runs"].present?
|
||||
end
|
||||
|
||||
json.status run["Status"]
|
||||
json.time_ago time_from_now(run["Updated"])
|
||||
json.holding_time run["Updated"]-run["Started"]
|
||||
json.time_ago time_from_now(run["Started"])
|
||||
json.holding_time run["Status"] == 6 ? Time.now.to_i - run["Started"] : run["Stopped"] - run["Started"]
|
||||
end
|
||||
else
|
||||
json.runs []
|
||||
|
||||
Reference in New Issue
Block a user