diff options
author | msdundar <msdundars@gmail.com> | 2018-07-30 03:37:47 +0300 |
---|---|---|
committer | msdundar <msdundars@gmail.com> | 2018-07-30 03:37:47 +0300 |
commit | 635393b50bae8fea3eb8e78ae423707c34b1f554 (patch) | |
tree | 4c6cbe0fa529ba5d608916c7fbe02bad278fa6ce /lib/gitlab/graphs | |
parent | 87f03f01735fb4b6dbef2e4bf625cf2546523a4e (diff) |
Show one digit after dot in commit_per_day value in charts page.
Closes #26512
Diffstat (limited to 'lib/gitlab/graphs')
-rw-r--r-- | lib/gitlab/graphs/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/graphs/commits.rb b/lib/gitlab/graphs/commits.rb index 3caf9036459..c4ffc19df09 100644 --- a/lib/gitlab/graphs/commits.rb +++ b/lib/gitlab/graphs/commits.rb @@ -18,7 +18,7 @@ module Gitlab end def commit_per_day - @commit_per_day ||= @commits.size / (@duration + 1) + @commit_per_day ||= (@commits.size.to_f / (@duration + 1)).round(1) end def collect_data |