更改:时间取值

This commit is contained in:
yystopf 2024-03-07 15:40:40 +08:00
parent 847e501dee
commit 69754d5c11
1 changed files with 2 additions and 2 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["Updated"])
json.holding_time run["Updated"]-run["Started"]
end
else
json.runs []