in app/models/build.rb [174:181]
def duration if started_at && finished_at finished_at - started_at elsif started_at Time.now - started_at end end