diff options
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 6568e34..33087b3 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -144,7 +144,7 @@ class Commit < ActiveRecord::Base end def duration - @duration ||= builds.select(&:finished_at).sum(&:duration).to_i + @duration ||= builds.select(&:duration).sum(&:duration).to_i end def finished_at |