diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/build.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/build.rb b/app/models/build.rb index dee068d..436479d 100644 --- a/app/models/build.rb +++ b/app/models/build.rb @@ -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 |