Skip to content
Snippets Groups Projects
Verified Commit bbadbf18 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix build duration for in-progress builds

parent 6687d08b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -183,6 +183,8 @@ class Build < ActiveRecord::Base
def duration
if started_at && finished_at
finished_at - started_at
elsif started_at
Time.now - started_at
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment