diff options
Diffstat (limited to 'app/models/commit.rb')
-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 d5485cd..73e485a 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -208,7 +208,7 @@ class Commit < ActiveRecord::Base if project.coverage_enabled? && builds.count(:all) > 0 coverage_array = builds.map(&:coverage).compact if coverage_array.size >= 1 - coverage_array.reduce(:+) / coverage_array.size + '%.2f' % (coverage_array.reduce(:+) / coverage_array.size) end end end |